AMQP-PUBLISH(1) | RabbitMQ C Client | AMQP-PUBLISH(1) |
NAME
amqp-publish - Publish a message on an AMQP server
SYNOPSIS
amqp-publish [OPTION...]
DESCRIPTION
Publishes a message to an exchange on an AMQP server. Options allow the various properties of the message and parameters of the AMQP basic.publish method to be specified.
By default, the message body is read from standard input. Alternatively, the -b option allows the message body to be provided as part of the command.
OPTIONS
-e, --exchange=exchange name
-r, --routing-key=routing key
-p, --persistent
-C, --content-type=MIME type
-E, --content-encoding=content coding
-b, --body=message body
-H, --header=header
EXAMPLES
Send a short message, consisting of the word “Hello” to the queue “myqueue” via the default exchange:
$ amqp-publish -r myqueue -b Hello
Send some XML data from a file to the exchange “events”, with persistent delivery mode, setting the content-type property on the message to make the data format explicit:
$ amqp-publish -e events -p -C text/xml <event.xml
SEE ALSO
librabbitmq-tools(7) describes connection-related options common to all the RabbitMQ C Client tools.
AUTHOR
The RabbitMQ Team <<info@rabbitmq.com>>
2024-12-25 | RabbitMQ C Client |