Queues
Manage your Workers Queues configurations using Wrangler.
queues list
List queues
npmyarnpnpm
npx wrangler queues listyarn wrangler queues listpnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues create
Create a queue
npmyarnpnpm
npx wrangler queues create <NAME>yarn wrangler queues create <NAME>pnpm wrangler queues create <NAME>-
<NAME>string requiredThe name of the queue
-
--jurisdictionstringThe jurisdiction of the queue
-
--delivery-delay-secsnumberHow long a published message should be delayed for, in seconds. Must be between 0 and 86400
-
--message-retention-period-secsnumberHow long to retain a message in the queue, in seconds. Must be between 60 and 86400 if on free tier, otherwise 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues update
Update a queue
npmyarnpnpm
npx wrangler queues update <NAME>yarn wrangler queues update <NAME>pnpm 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 86400
-
--message-retention-period-secsnumberHow long to retain a message in the queue, in seconds. Must be between 60 and 86400 if on free tier, otherwise 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues delete
Delete a queue
npmyarnpnpm
npx wrangler queues delete <NAME>yarn wrangler queues delete <NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues info
Get queue information
npmyarnpnpm
npx wrangler queues info <NAME>yarn wrangler queues info <NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer add
Add a Queue Worker Consumer
npmyarnpnpm
npx wrangler queues consumer add <QUEUE-NAME> <SCRIPT-NAME>yarn wrangler queues consumer add <QUEUE-NAME> <SCRIPT-NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer remove
Remove a Queue Worker Consumer
npmyarnpnpm
npx wrangler queues consumer remove <QUEUE-NAME> <SCRIPT-NAME>yarn wrangler queues consumer remove <QUEUE-NAME> <SCRIPT-NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer list
List consumers for a queue
npmyarnpnpm
npx wrangler queues consumer list <QUEUE-NAME>yarn wrangler queues consumer list <QUEUE-NAME>pnpm wrangler queues consumer list <QUEUE-NAME>-
<QUEUE-NAME>string requiredName of the queue
-
--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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer http add
Add a Queue HTTP Pull Consumer
npmyarnpnpm
npx wrangler queues consumer http add <QUEUE-NAME>yarn wrangler queues consumer http add <QUEUE-NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer http remove
Remove a Queue HTTP Pull Consumer
npmyarnpnpm
npx wrangler queues consumer http remove <QUEUE-NAME>yarn wrangler queues consumer http remove <QUEUE-NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer http list
List HTTP pull consumers for a queue
npmyarnpnpm
npx wrangler queues consumer http list <QUEUE-NAME>yarn wrangler queues consumer http list <QUEUE-NAME>pnpm wrangler queues consumer http list <QUEUE-NAME>-
<QUEUE-NAME>string requiredName of the queue
-
--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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer worker add
Add a Queue Worker Consumer
npmyarnpnpm
npx wrangler queues consumer worker add <QUEUE-NAME> <SCRIPT-NAME>yarn wrangler queues consumer worker add <QUEUE-NAME> <SCRIPT-NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer worker remove
Remove a Queue Worker Consumer
npmyarnpnpm
npx wrangler queues consumer worker remove <QUEUE-NAME> <SCRIPT-NAME>yarn wrangler queues consumer worker remove <QUEUE-NAME> <SCRIPT-NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues consumer worker list
List worker consumers for a queue
npmyarnpnpm
npx wrangler queues consumer worker list <QUEUE-NAME>yarn wrangler queues consumer worker list <QUEUE-NAME>pnpm wrangler queues consumer worker list <QUEUE-NAME>-
<QUEUE-NAME>string requiredName of the queue
-
--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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues pause-delivery
Pause message delivery for a queue
npmyarnpnpm
npx wrangler queues pause-delivery <NAME>yarn wrangler queues pause-delivery <NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues resume-delivery
Resume message delivery for a queue
npmyarnpnpm
npx wrangler queues resume-delivery <NAME>yarn wrangler queues resume-delivery <NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues purge
Purge messages from a queue
npmyarnpnpm
npx wrangler queues purge <NAME>yarn wrangler queues purge <NAME>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues subscription create
Create a new event subscription for a queue
npmyarnpnpm
npx wrangler queues subscription create <QUEUE>yarn wrangler queues subscription create <QUEUE>pnpm 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)
-
--zone-idstringZone ID (required for email.sending source)
-
--domainstringSending domain — zone apex or verified subdomain (required for email.sending 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues subscription list
List event subscriptions for a queue
npmyarnpnpm
npx wrangler queues subscription list <QUEUE>yarn wrangler queues subscription list <QUEUE>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues subscription get
Get details about a specific event subscription
npmyarnpnpm
npx wrangler queues subscription get <QUEUE>yarn wrangler queues subscription get <QUEUE>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues subscription delete
Delete an event subscription from a queue
npmyarnpnpm
npx wrangler queues subscription delete <QUEUE>yarn wrangler queues subscription delete <QUEUE>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile
queues subscription update
Update an existing event subscription
npmyarnpnpm
npx wrangler queues subscription update <QUEUE>yarn wrangler queues subscription update <QUEUE>pnpm 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
-
--install-skillsboolean default: falseInstall Cloudflare skills for detected AI coding agents before running the command
-
--profilestringUse a specific auth profile