Wrangler commands
Queues Wrangler commands use REST APIs to interact with the control plane. This page lists the Wrangler commands for Queues.
Create a new queue.
wrangler queues create <name> [OPTIONS]namestring required- The name of the queue to create.
--delivery-delay-secsnumber optional- How long a published message should be delayed for, in seconds. Must be a positive integer.
--message-retention-period-secsnumber optional- How long a published message is retained in the Queue. Must be a positive integer between 60 and 1209600 (14 days). Defaults to 345600 (4 days).
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Update an existing queue.
wrangler queues update <name> [OPTIONS]namestring required- The name of the queue to update.
--delivery-delay-secsnumber optional- How long a published message should be delayed for, in seconds. Must be a positive integer.
--message-retention-period-secsnumber optional- How long a published message is retained on the Queue. Must be a positive integer between 60 and 1209600 (14 days). Defaults to 345600 (4 days).
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Delete an existing queue.
wrangler queues delete <name> [OPTIONS]namestring required- The name of the queue to delete.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
List all queues in the current account.
wrangler queues list [OPTIONS]The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Get information on individual queues.
wrangler queues info <name>namestring required- The name of the queue to inspect.
Manage queue consumer configurations.
Add a Worker script as a queue consumer.
wrangler queues consumer add <queue-name> <script-name> [OPTIONS]queue-namestring required- The name of the queue to add the consumer to.
script-namestring required- The name of the Workers script to add as a consumer of the named queue.
--batch-sizenumber optional- Maximum number of messages per batch. Must be a positive integer.
--batch-timeoutnumber optional- Maximum number of seconds to wait to fill a batch with messages. Must be a positive integer.
--message-retriesnumber optional- Maximum number of retries for each message. Must be a positive integer.
--max-concurrencynumber optional- The maximum number of concurrent consumer invocations that will be scaled up to handle incoming message volume. Must be a positive integer.
--retry-delay-secsnumber optional- How long a retried message should be delayed for, in seconds. Must be a positive integer.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Remove a consumer from a queue.
wrangler queues consumer remove <queue-name> <script-name>queue-namestring required- The name of the queue to remove the consumer from.
script-namestring required- The name of the Workers script to remove as the consumer.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Permanently delete all messages in a queue.
wrangler queues purge <queue-name>queue-namestring required- The name of the queue from which messages should be deleted.
Pause message delivery from a Queue to consumers (including push consumers, and HTTP pull consumers)
wrangler queues pause-delivery <queue-name>queue-namestring required- The name of the queue which delivery should be paused.
Resume delivery from a Queue to consumers (including push consumers, and HTTP pull consumers)
wrangler queues resume-delivery <queue-name>queue-namestring required- The name of the queue from which delivery should be resumed.
Create a new event subscription for a queue.
wrangler queues subscription create <queue-name> [OPTIONS]queue-namestring required- The name of the queue to create the subscription for.
--sourcestring required- The event source type. Supported sources:
kv,r2,superSlurper,vectorize,workersAi.model,workersBuilds.worker,workflows.workflow.
- The event source type. Supported sources:
--eventsstring required- Comma-separated list of event types to subscribe to. Refer to Events & schemas for a complete list of all supported events.
--namestring optional- Name for the subscription. Auto-generated if not provided.
--enabledboolean optional- Whether the subscription should be active. Defaults to true.
- Additional source-specific options (e.g.,
--worker-namefor workersBuilds.worker,--bucket-namefor r2.bucket).
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
List all event subscriptions for a queue.
wrangler queues subscription list <queue-name> [OPTIONS]queue-namestring required- The name of the queue to list subscriptions for.
--pagenumber optional- Show a specific page from the listing. You can configure page size using "per-page".
--per-pagenumber optional- Configure the maximum number of subscriptions to show per page.
--jsonboolean optional- Output in JSON format.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Get details about a specific event subscription.
wrangler queues subscription get <queue-name> [OPTIONS]queue-namestring required- The name of the queue.
--idstring required- The ID of the subscription to retrieve.
--jsonboolean optional- Output in JSON format.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Update an existing event subscription.
wrangler queues subscription update <queue-name> [OPTIONS]queue-namestring required- The name of the queue.
--idstring required- The ID of the subscription to update.
--namestring optional- New name for the subscription.
--eventsstring optional- Comma-separated list of event types to subscribe to.
--enabledboolean optional- Whether the subscription should be active.
--jsonboolean optional- Output in JSON format.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Delete an event subscription.
wrangler queues subscription delete <queue-name> [OPTIONS]queue-namestring required- The name of the queue.
--idstring required- The ID of the subscription to delete.
--forceboolean optional- Skip confirmation prompt.
The following global flags work on every command:
--helpboolean- Show help.
--configstring (not supported by Pages)- Path to your Wrangler configuration file.
--cwdstring- Run as if Wrangler was started in the specified directory instead of the current working directory.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark