RabbitMQ - Create Queue using the rabbitmqadmin command
by
Jeremy Canfield |
Updated: November 05 2021
| RabbitMQ articles
This assumes you have downloaded and setup the rabbitmqadmin command line tool.
declare queue can be used to create a queue. In this example, a durable queue named queue001 is created in vhost /.
rabbitmqadmin declare queue --vhost=foo name=a.queue durable=true
And here is how you would include arguments.
rabbitmqadmin declare queue --vhost=foo name=a.queue durable=true arguments='{"x-queue-mode":"lazy"}'
If the queue is created, the following should be returned.
queue declared
Did you find this article helpful?
If so, consider buying me a coffee over at