- Publisher Confirms
- Import/Export definitions
- Consumer Cancellation
- Configuration files
- Consumer Acknowledgments
- Dead Letter Exchange
- Consistent Hash Exchange
- Alternate Exchange
- Direct Reply-to
- Delayed Message Exchange
- Pause Consumers
AMQP 0-9-1 Overview
Management HTTP API
LavinMQ Command Line Interface
What is a command line interface?
A command line interface lets you configure a program from your terminal. This has several benefits but one big advantage is that you can control your program from script files or from other programs.
What benefits does lavinmqctl offer?
Being able to control LavinMQ from the command line can be very powerful, it allows you to do repetitive tasks like setting up exchanges and queues very simple. You can also use it to check the status of the broker.
How should I use lavinmqctl?
Lavinmqctl can be used on your own computer or a server and you can use it against a local instance of lavinmq or a hosted one running on cloudamqp.com as it supports remote instances as well.
lavinmqctl is a command line tool for managing an LavinMQ instance, it connects to the running instance over either unix socket or over HTTP. Default is using a unix socket, which therefore requires the instance to be running on the same machine. You can tell the tool to connect to a remote instance using HTTPS and using basic auth for authentication. When using this method the credentials to use are the same as you use when connecting an AMQP client so the same permissions is also used for
Example of listing queues in vhost cloudamqp
Global options are available for all commands.
|-p vhost, –vhost=vhost||Specify vhost|
|-H host, –host=host||Specify host, if skipped it will connect using the default unix socket,
which require LavinMQ to be running on the same machine.
When connecting to a remote broker you should specify host a complete
http uri like this: https://username:email@example.com/
|-n node, –node=node||Specify node|
|-q, –quiet||Suppress informational messages|
|-s, –silent||Suppress informational messages and table formatting|
|-v, –version||Show version|
|-h, –help||Print all options and commands available, this can also be used for a command
|add_user||Creates a new user|
|change_password||Change the user password|
|delete_user||Delete a user|
|list_users||List user names and tags|
|set_user_tags||Sets user tags|
|list_vhosts||Lists virtual hosts|
|add_vhost||Creates a virtual host|
|delete_vhost||Deletes a virtual host|
|clear_policy||Clears (removes) a policy|
|list_policies||Lists all policies in a virtual host|
|list_connections||Lists AMQP 0.9.1 connections for the node|
|list_queues||Lists queues and their properties|
|purge_queue||Purges a queue (removes all messages in it)|
|pause_queue||Pause all consumers on a queue|
|resume_queue||Resume all consumers on a queue|
|export_definitions||Exports definitions in JSON|
|import_definitions||Import definitions in JSON|
|close_all_connections||Instructs the broker to close all connections for the specified vhost or entire node|
|close_connection||Instructs the broker to close a connection by pid|
|stop_app||Stop the AMQP broker|
|start_app||Starts the AMQP broker|
|set_policy||Sets or updates a policy|