rabbitmqadmin
$ rabbitmqadmin Official Med Riskrabbitmqadmin interacts with RabbitMQ's HTTP Management API to list queues, exchanges, bindings, connections, and publish/get messages without requiring Erlang cluster distribution access. Supports -f raw_json / pretty_json output and --vhost scoping.
brew install rabbitmq rabbitmqadmin list queues -f raw_json plus positional column filtering gives compact JSON snapshots directly in shell pipelines.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -f raw_json / pretty_json and column projection (list queues name messages), making it highly token-efficient once connected.
- Supports
-f raw_jsonand positional field projection
--vhost scoping and ~/.rabbitmqadmin.conf profiles help isolate targets, though purge queue and delete queue lack --dry-run and -p risks shell-history exposure.
- Supports
--vhostscoping - Lacks
--dry-run; inline-p <password>is discouraged vs.rabbitmqadmin.conf
Bundled with RabbitMQ (brew install rabbitmq) or downloaded from a broker's /cli/rabbitmqadmin endpoint; classic v1 requires Python 3, while v2 is a standalone Rust rewrite.
- Requires either Python 3 runtime (v1 script) or v2 binary download
Inspects queues, exchanges, bindings, and dead-letter backlogs over HTTP without Erlang CLI access.
- Covers full RabbitMQ Management HTTP API
Official RabbitMQ (rabbitmq/rabbitmq-server) component under MPL-2.0 license.
- Official
rabbitmq/rabbitmq-serverproject under MPL-2.0
Clear usage docs at rabbitmq.com/docs/management-cli, though v1 Python and v2 Rust CLI flags differ across broker versions.
- Official management CLI guide at rabbitmq.com
Security, Auth & Guardrails
Reads node profiles from ~/.rabbitmqadmin.conf or accepts -H, -P, -u, -p, and --vhost flags.
MPL-2.0 open-source CLI bundled with RabbitMQ Management plugin; free to use.
# rabbitmqadmin Agent Rules - Always pass `-f raw_json` (and explicit column names on `list`) when inspecting queues or exchanges. - Never run `delete queue`, `purge queue`, or `close connection` without explicit user approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
rabbitmqadmin list queues -f raw_json name messages consumers
Queries the RabbitMQ Management HTTP API and prints compact JSON with only selected columns.
rabbitmqadmin --vhost=/ list bindings -f raw_json
Lists exchange-to-queue routing keys as structured JSON without modifying broker state.
Controlled Writes & Previews
rabbitmqadmin publish exchange=amq.default routing_key=jobs payload='{"job":"ping"}' Publishes a single message to the jobs queue via the default exchange.
Strengths for Agents
- +
-f raw_jsonplus column selection returns compact, jq-ready JSON. - + Operates over HTTP Management port (
15672), avoiding Erlang cookie setup. - + Supports
--vhostand~/.rabbitmqadmin.confnode profiles.
Caveats & Pitfalls
- ! Requires the
rabbitmq_managementplugin to be enabled on the broker. - ! Classic v1 script needs Python 3 and uses
key=valueargs onpublish, differing from newer v2 flags.