dcloud queue messages receiveReceive up to 10 messages, hiding them for the visibility timeout
waitSeconds (0–20) long-polls until a message arrives. Each message carries a receiptHandle: delete it with messages delete once processed, or it becomes visible again when the timeout ends. Changes state: received messages are hidden from other consumers.
Synopsis
dcloud queue messages receive name [flags]Arguments
<name>Requiredstring
Also accepted as
--name. Constraints: max 80 chars, /^[A-Za-z0-9_-]+(\.fifo)?$/
Flags
--max-messagesOptionalnumber
Most messages to return (default 1)
Constraints: integer, 1-10
--visibility-timeout-secondsOptionalnumber
Seconds the received messages stay hidden from other consumers (default: the queue’s visibility timeout)
Constraints: integer, 0-43200
--wait-secondsOptionalnumber
Seconds to wait for a message when none is available; 0 answers at once (default: the queue’s receive wait)
Constraints: integer, 0-20
Example
dcloud queue messages receive nameGenerated from the API description, the same one the API checks requests against and the CLI is built from.