Skip to content

CLI reference

A complete reference of the plainq command surface. For task-oriented walkthroughs, see the CLI guide.

These apply to every command that talks to a server:

Flag Default Description
-grpc.addr localhost:8080 Address of the PlainQ gRPC server.
-json false Emit machine-readable JSON output.
-h, -help Print command help.

Run the PlainQ server (gRPC + HTTP + Houston UI). See the Configuration reference for every serve flag.

Print the build version, commit, and build time.

Manage local client contexts (saved server addresses and settings).

List queues. Supports pagination, an optional name prefix, and sort order.

Create a queue. Prints the new queue ID.

All values are whole numbers of seconds where applicable, and flags must precede the positional queue name.

Flag Default Description
-visibility-timeout 30 Seconds a received message stays invisible.
-max-receive-attempts 5 Receives allowed before eviction.
-retention-period 0 (→7d) Seconds a message may live before eviction.
-drop-policy drop Eviction policy: drop or dead-letter.
-dead-letter-queue-id Target queue when -drop-policy=dead-letter.

Describe a queue’s settings.

Delete all messages from a queue (the queue itself remains).

Delete the queue. Pass -force to skip safety checks.

Send one or more messages.

Flag Description
-message Message body (repeatable for multiple messages).
-file Read the body from a file; -file=- reads stdin.

Receive a batch of messages.

Flag Default Description
-batch 1 Number of messages to receive (1–10).
-ack false Delete messages immediately after reading.

Acknowledge (delete) one or more messages by ID.

Launch the interactive Bubble Tea terminal UI.

Print the gRPC API surface as text, or as JSON with -json.

The wire API is defined in schema/v1/schema.proto and published to the Buf Schema Registry. It exposes eight RPCs: ListQueues, DescribeQueue, CreateQueue, PurgeQueue, DeleteQueue, Send, Receive, and Delete. Use buf generate to produce a client SDK in your language of choice.