amqpcat - CLI tool to publish to and consume from AMQP servers
- -P,
--producer
- Producer mode, reading from STDIN, each line is a new message
- -C,
--consumer
- Consume mode, message bodies are written to STDOUT
- -R, --rpc
- Remote prodecure call mode, reading from STDIN and returning result
STDOUT
- -u URI,
--uri=URI
- URI to AMQP server
-e EXCHANGE, --exchange=EXCHANGE Exchange
(default: '')
- -t EXCHANGETYPE,
--exchange-type=TYPE
- Exchange type (default: direct)
-r ROUTINGKEY, --routing-key=KEY Routing
key when publishing
- -q QUEUE,
--queue=QUEUE
- Queue to consume from
- , --queue-type=QUEUE_TYPE
- Queue type (classic, quorum or stream)
- -c,
--publish-confirm
- Confirm publishes
- -o OFFSET, --offset
OFFSET
- Stream queue: Offset to start reading from
- -f FORMAT,
--format=FORMAT
- Format string (default "%s\n") %e: Exchange name %r: Routing key
%t: Content type %s: Body, as string %h: Headers, as key=value \n: Newline
\t: Tab
- --content-type=TYPE
- Content type header
- --content-encoding=ENC
- Content encoding header
- --priority=LEVEL
- Priority header
- --expiration=TIME
- Expiration header (ms before msg is dead lettered)
- -v, --version
- Display version
- -h, --help
- Show this help message