A simple command line tool to silently inspect Azure Service Bus messages without touching them.
As other existing tools like the Service Bus Explorer mostly run on Windows only, I descided to quickly write a cross-platform command line tool based on .NET Core to explore messages in Azure Service Bus.
Make sure to have at least .NET Core 2.1 installed on your machine.
dotnet tool install servicebusspy --global
# Update
dotnet tool update servicebusspy --global
# Remove
dotnet tool uninstall servicebusspy --global
servicebusspy list
--queue "Test" \
--connectionString "YOUR_SERVICE_BUS_CONNECTION_STRING" \
--verbose # optional
servicebusspy add "Message Content" \
--queue "Test" \
--connectionString "YOUR_SERVICE_BUS_CONNECTION_STRING"
servicebusspy subscribe
--queue "Test" \
--connectionString "YOUR_SERVICE_BUS_CONNECTION_STRING" \
--verbose # optional
servicebusspy clear
--queue "Test" \
--connectionString "YOUR_SERVICE_BUS_CONNECTION_STRING"