Skip to content

rabbitmq put-message

vp-utils rabbitmq put-message

Put a message to RabbitMQ server

Synopsis

Put a message to RabbitMQ server. It will connect to the server and send a message to the specified exchange and routing key

vp-utils rabbitmq put-message [flags]

Examples

vp-utils rabbitmq put-message --host localhost --port 5672 --user guest --password guest --vhost / --exchange my_exchange --routing-key my_routing_key --message '{"message": "Hello RabbitMQ! This is default test message"}'

Options

  -e, --exchange string      RabbitMQ exchange name to send the message to
  -h, --help                 help for put-message
  -H, --host string          RabbitMQ server host (default "localhost")
  -m, --message string       Message to send to RabbitMQ
  -p, --password string      RabbitMQ password (default "guest")
  -P, --port int             RabbitMQ server port (default 5672)
  -r, --routing-key string   RabbitMQ routing key
  -s, --ssl                  Use SSL for RabbitMQ connection
  -c, --ssl-cert string      Path to SSL certificate file
  -k, --ssl-key string       Path to SSL key file
  -u, --user string          RabbitMQ user (default "guest")
  -v, --vhost string         RabbitMQ virtual host (default "/")

SEE ALSO

Auto generated by spf13/cobra on 18-Sep-2025