Wrangler commands
Queues Wrangler commands use REST APIs to interact with the control plane. This page lists the Wrangler commands for Queues.
List queues
npx wrangler queues listpnpm wrangler queues listyarn wrangler queues list-
--pagenumberPage number for pagination
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Create a queue
npx wrangler queues create [NAME]pnpm wrangler queues create [NAME]yarn wrangler queues create [NAME]-
[NAME]string requiredThe name of the queue
-
--delivery-delay-secsnumber default: 0How long a published message should be delayed for, in seconds. Must be between 0 and 42300
-
--message-retention-period-secsnumber default: 345600How long to retain a message in the queue, in seconds. Must be between 60 and 1209600
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Update a queue
npx wrangler queues update [NAME]pnpm wrangler queues update [NAME]yarn wrangler queues update [NAME]-
[NAME]string requiredThe name of the queue
-
--delivery-delay-secsnumberHow long a published message should be delayed for, in seconds. Must be between 0 and 42300
-
--message-retention-period-secsnumberHow long to retain a message in the queue, in seconds. Must be between 60 and 1209600
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Delete a queue
npx wrangler queues delete [NAME]pnpm wrangler queues delete [NAME]yarn wrangler queues delete [NAME]-
[NAME]string requiredThe name of the queue
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Get queue information
npx wrangler queues info [NAME]pnpm wrangler queues info [NAME]yarn wrangler queues info [NAME]-
[NAME]string requiredThe name of the queue
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Add a Queue Worker Consumer
npx wrangler queues consumer add [QUEUE-NAME] [SCRIPT-NAME]pnpm wrangler queues consumer add [QUEUE-NAME] [SCRIPT-NAME]yarn wrangler queues consumer add [QUEUE-NAME] [SCRIPT-NAME]-
[QUEUE-NAME]string requiredName of the queue to configure
-
[SCRIPT-NAME]string requiredName of the consumer script
-
--batch-sizenumberMaximum number of messages per batch
-
--batch-timeoutnumberMaximum number of seconds to wait to fill a batch with messages
-
--message-retriesnumberMaximum number of retries for each message
-
--dead-letter-queuestringQueue to send messages that failed to be consumed
-
--max-concurrencynumberThe maximum number of concurrent consumer Worker invocations. Must be a positive integer
-
--retry-delay-secsnumberThe number of seconds to wait before retrying a message
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Remove a Queue Worker Consumer
npx wrangler queues consumer remove [QUEUE-NAME] [SCRIPT-NAME]pnpm wrangler queues consumer remove [QUEUE-NAME] [SCRIPT-NAME]yarn wrangler queues consumer remove [QUEUE-NAME] [SCRIPT-NAME]-
[QUEUE-NAME]string requiredName of the queue to configure
-
[SCRIPT-NAME]string requiredName of the consumer script
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Add a Queue HTTP Pull Consumer
npx wrangler queues consumer http add [QUEUE-NAME]pnpm wrangler queues consumer http add [QUEUE-NAME]yarn wrangler queues consumer http add [QUEUE-NAME]-
[QUEUE-NAME]string requiredName of the queue for the consumer
-
--batch-sizenumberMaximum number of messages per batch
-
--message-retriesnumberMaximum number of retries for each message
-
--dead-letter-queuestringQueue to send messages that failed to be consumed
-
--visibility-timeout-secsnumberThe number of seconds a message will wait for an acknowledgement before being returned to the queue.
-
--retry-delay-secsnumberThe number of seconds to wait before retrying a message
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Remove a Queue HTTP Pull Consumer
npx wrangler queues consumer http remove [QUEUE-NAME]pnpm wrangler queues consumer http remove [QUEUE-NAME]yarn wrangler queues consumer http remove [QUEUE-NAME]-
[QUEUE-NAME]string requiredName of the queue for the consumer
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Add a Queue Worker Consumer
npx wrangler queues consumer worker add [QUEUE-NAME] [SCRIPT-NAME]pnpm wrangler queues consumer worker add [QUEUE-NAME] [SCRIPT-NAME]yarn wrangler queues consumer worker add [QUEUE-NAME] [SCRIPT-NAME]-
[QUEUE-NAME]string requiredName of the queue to configure
-
[SCRIPT-NAME]string requiredName of the consumer script
-
--batch-sizenumberMaximum number of messages per batch
-
--batch-timeoutnumberMaximum number of seconds to wait to fill a batch with messages
-
--message-retriesnumberMaximum number of retries for each message
-
--dead-letter-queuestringQueue to send messages that failed to be consumed
-
--max-concurrencynumberThe maximum number of concurrent consumer Worker invocations. Must be a positive integer
-
--retry-delay-secsnumberThe number of seconds to wait before retrying a message
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Remove a Queue Worker Consumer
npx wrangler queues consumer worker remove [QUEUE-NAME] [SCRIPT-NAME]pnpm wrangler queues consumer worker remove [QUEUE-NAME] [SCRIPT-NAME]yarn wrangler queues consumer worker remove [QUEUE-NAME] [SCRIPT-NAME]-
[QUEUE-NAME]string requiredName of the queue to configure
-
[SCRIPT-NAME]string requiredName of the consumer script
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Pause message delivery for a queue
npx wrangler queues pause-delivery [NAME]pnpm wrangler queues pause-delivery [NAME]yarn wrangler queues pause-delivery [NAME]-
[NAME]string requiredThe name of the queue
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Resume message delivery for a queue
npx wrangler queues resume-delivery [NAME]pnpm wrangler queues resume-delivery [NAME]yarn wrangler queues resume-delivery [NAME]-
[NAME]string requiredThe name of the queue
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Purge messages from a queue
npx wrangler queues purge [NAME]pnpm wrangler queues purge [NAME]yarn wrangler queues purge [NAME]-
[NAME]string requiredThe name of the queue
-
--forcebooleanSkip the confirmation dialog and forcefully purge the Queue
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Create a new event subscription for a queue
npx wrangler queues subscription create [QUEUE]pnpm wrangler queues subscription create [QUEUE]yarn wrangler queues subscription create [QUEUE]-
[QUEUE]string requiredThe name of the queue to create the subscription for
-
--sourcestring requiredThe event source type
-
--eventsstring requiredComma-separated list of event types to subscribe to
-
--namestringName for the subscription (auto-generated if not provided)
-
--enabledboolean default: trueWhether the subscription should be active
-
--model-namestringWorkers AI model name (required for workersAi.model source)
-
--worker-namestringWorker name (required for workersBuilds.worker source)
-
--workflow-namestringWorkflow name (required for workflows.workflow source)
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
List event subscriptions for a queue
npx wrangler queues subscription list [QUEUE]pnpm wrangler queues subscription list [QUEUE]yarn wrangler queues subscription list [QUEUE]-
[QUEUE]string requiredThe name of the queue to list subscriptions for
-
--pagenumber default: 1Page number for pagination
-
--per-pagenumber default: 20Number of subscriptions per page
-
--jsonboolean default: falseOutput in JSON format
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Get details about a specific event subscription
npx wrangler queues subscription get [QUEUE]pnpm wrangler queues subscription get [QUEUE]yarn wrangler queues subscription get [QUEUE]-
[QUEUE]string requiredThe name of the queue
-
--idstring requiredThe ID of the subscription to retrieve
-
--jsonboolean default: falseOutput in JSON format
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Delete an event subscription from a queue
npx wrangler queues subscription delete [QUEUE]pnpm wrangler queues subscription delete [QUEUE]yarn wrangler queues subscription delete [QUEUE]-
[QUEUE]string requiredThe name of the queue
-
--idstring requiredThe ID of the subscription to delete
-
--forceboolean alias: --y default: falseSkip confirmation
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
Update an existing event subscription
npx wrangler queues subscription update [QUEUE]pnpm wrangler queues subscription update [QUEUE]yarn wrangler queues subscription update [QUEUE]-
[QUEUE]string requiredThe name of the queue
-
--idstring requiredThe ID of the subscription to update
-
--namestringNew name for the subscription
-
--eventsstringComma-separated list of event types to subscribe to
-
--enabledbooleanWhether the subscription should be active
-
--jsonboolean default: falseOutput in JSON format
Global flags
-
--vboolean alias: --versionShow version number
-
--cwdstringRun as if Wrangler was started in the specified directory instead of the current working directory
-
--configstring alias: --cPath to Wrangler configuration file
-
--envstring alias: --eEnvironment to use for operations, and for selecting .env and .dev.vars files
-
--env-filestringPath to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--experimental-remote-bindingsboolean aliases: --x-remote-bindings default: trueExperimental: Enable Remote Bindings
-
--experimental-provisionboolean aliases: --x-provisionExperimental: Enable automatic resource provisioning
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