amqp-publish
A simple tool to publish messages to RabbitMQ from the command line.
Setup
Download the latest release binary and save it to /usr/local/bin
or any executable path.
Usage
Publish to exchange
amqp-publish --uri="amqp://admin:password@localhost:5672/" --exchange="foo" --routing-key="awesome-routing-key" --body="hello, world!"
Publish the bar
queue directly, using RabbitMQ default exchange
amqp-publish --uri="amqp://admin:password@localhost:5672/" --exchange="" --routing-key="bar" --body="hello, world!"
Cry for help
amqp-publish --help
Credit
Streadway's awesome AMQP Go library.