AMQP-GET(1)

πŸ’– AMQP-GET(1) πŸ’–

okay bestie, welcome to amqp-get β€” a lil tool from the RabbitMQ C Client and she is so good at exactly one thing: snatching a single message off an AMQP server and dipping. ✨


🌸 NAME 🌸

amqp-get β€” get a message from a queue on an AMQP server 🫢


πŸŽ€ SYNOPSIS πŸŽ€

amqp-get [OPTION...] {-q queue name}

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. amqp-get rolls up to a queue on an AMQP server, tries to consume one single message, and then peaces out immediately. one (1) message. that's the whole vibe. πŸ’…

unless the queue was empty (in which case, no message for us 😭), the body of the message it grabbed gets sent straight to standard output. slay.


✨ OPTIONS ✨

  • -q, --queue=queue name β€” the name of the queue we're consuming messages from. literally just tell her where to look, bestie. πŸ‘‘

πŸ‘‘ EXIT STATUS πŸ‘‘

the exit status is the whole story arc here, so pay attention:

  • if the queue is not empty and a message was successfully retrieved β†’ exit status is 0 πŸŽ‰ (ate, no crumbs)
  • if an error occurs β†’ exit status is 1 πŸ’€
  • if the queue is found to be empty β†’ exit status is 2 😭 (not a failure, just a lil "nothing here!" vibe)
bestie fr fr, check that exit status. 2 is not the same as 0. iykyk. 🚨

🌈 EXAMPLES 🌈

get a message from the queue myqueue, and display its body on standard output:

$ amqp-get -q myqueue

look at her go ✨ main character energy.


πŸ’œ SEE ALSO πŸ’œ

librabbitmq-tools(7) β€” describes connection-related options common to all the RabbitMQ C Client tools. so if you're wondering about the connection stuff, that's where it lives. 🧚


πŸ“ AUTHOR πŸ“

The RabbitMQ Team <info@rabbitmq.com> 🫢


and that's the page!! this beauty is part of the RabbitMQ C Client, version dated 2026-10-13. go get that message, bestie, you got this πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from