本页还没有译文
本页 68 段还没译成한국어,下面显示的是英文原文。Workflows
还没翻译译自英文(developers.cloudflare.com)本页 68 段都还没译
Manage and configure Workflows using Wrangler.
Note
The wrangler workflows command requires Wrangler version 3.83.0 or greater. Use npx wrangler@latest to always use the latest Wrangler version when invoking commands.
`--local` option
All wrangler workflows commands support the --local flag to target a Workflow running in a local wrangler dev session instead of production. Use --port to specify the port of the dev session (defaults to 8787).
The --local flag requires Wrangler version 4.79.0 or greater.
For more information, refer to Workflows local development.
workflows list
List Workflows associated to account
npmyarnpnpm
npx wrangler workflows listyarn wrangler workflows listpnpm wrangler workflows list-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
--pagenumber default: 1Show a sepecific page from the listing, can configure page size using "per-page"
-
--per-pagenumberConfigure the maximum number of workflows to show per page
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
workflows describe
Describe Workflow resource
npmyarnpnpm
npx wrangler workflows describe <NAME>yarn wrangler workflows describe <NAME>pnpm wrangler workflows describe <NAME>-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
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
workflows delete
Delete workflow - when deleting a workflow, it will also delete it's own instances
npmyarnpnpm
npx wrangler workflows delete <NAME>yarn wrangler workflows delete <NAME>pnpm wrangler workflows delete <NAME>-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
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
workflows trigger
Trigger a workflow, creating a new instance. Can optionally take a JSON string to pass a parameter into the workflow instance
npmyarnpnpm
npx wrangler workflows trigger <NAME> [PARAMS]yarn wrangler workflows trigger <NAME> [PARAMS]pnpm wrangler workflows trigger <NAME> [PARAMS]-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
[PARAMS]string default:Params for the workflow instance, encoded as a JSON string
-
--idstringCustom instance ID, if not provided it will default to a random UUIDv4
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
workflows instances list
Instance related commands (list, describe, terminate, pause, resume)
npmyarnpnpm
npx wrangler workflows instances list <NAME>yarn wrangler workflows instances list <NAME>pnpm wrangler workflows instances list <NAME>-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
--reverseboolean default: falseReverse order of the instances table
-
--statusstringFilters list by instance status (can be one of: queued, running, paused, errored, terminated, complete)
-
--date-startstringOnly list instances created at or after this date (ISO 8601, e.g. 2026-01-01 or 2026-01-01T13:00:00Z)
-
--date-endstringOnly list instances created at or before this date (ISO 8601). A date without a time covers the whole UTC day, so 2026-01-31 includes everything up to 2026-01-31T23:59:59.999Z
-
--pagenumber default: 1Show a sepecific page from the listing, can configure page size using "per-page"
-
--per-pagenumberConfigure the maximum number of instances to show per page
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
workflows instances describe
Describe a workflow instance - see its logs, retries and errors
npmyarnpnpm
npx wrangler workflows instances describe <NAME> [ID]yarn wrangler workflows instances describe <NAME> [ID]pnpm wrangler workflows instances describe <NAME> [ID]-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
[ID]string default: latestID of the instance - instead of an UUID you can type 'latest' to get the latest instance and describe it
-
--step-outputboolean default: trueDon't output the step output since it might clutter the terminal
-
--truncate-output-limitnumber default: 5000Truncate step output after x characters
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
workflows instances send-event
Send an event to a workflow instance
npmyarnpnpm
npx wrangler workflows instances send-event <NAME> <ID>yarn wrangler workflows instances send-event <NAME> <ID>pnpm wrangler workflows instances send-event <NAME> <ID>-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
<ID>string requiredID of the instance - instead of an UUID you can type 'latest' to get the latest instance and send an event to it
-
--typestring requiredType of the workflow event
-
--payloadstring default: {}JSON string for the workflow event (e.g., '{"key": "value"}')
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
workflows instances terminate
Terminate a workflow instance
npmyarnpnpm
npx wrangler workflows instances terminate <NAME> <ID>yarn wrangler workflows instances terminate <NAME> <ID>pnpm wrangler workflows instances terminate <NAME> <ID>-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
<ID>string requiredID of the instance - instead of an UUID you can type 'latest' to get the latest instance and describe it
-
--rollbackboolean default: falseRun registered rollback handlers before terminating
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
workflows instances restart
Restart a workflow instance
npmyarnpnpm
npx wrangler workflows instances restart <NAME> <ID>yarn wrangler workflows instances restart <NAME> <ID>pnpm wrangler workflows instances restart <NAME> <ID>-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
<ID>string requiredID of the instance - instead of an UUID you can type 'latest' to get the latest instance and describe it
-
--from-step-namestringName of the step to restart from
-
--from-step-countnumber1-based occurrence of the step name/type to restart from (defaults to 1)
-
--from-step-typestringStep type to restart from, used when the same name is shared across step types (defaults to do)
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
workflows instances pause
Pause a workflow instance
npmyarnpnpm
npx wrangler workflows instances pause <NAME> <ID>yarn wrangler workflows instances pause <NAME> <ID>pnpm wrangler workflows instances pause <NAME> <ID>-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
<ID>string requiredID of the instance - instead of an UUID you can type 'latest' to get the latest instance and pause it
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
workflows instances resume
Resume a workflow instance
npmyarnpnpm
npx wrangler workflows instances resume <NAME> <ID>yarn wrangler workflows instances resume <NAME> <ID>pnpm wrangler workflows instances resume <NAME> <ID>-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
<ID>string requiredID of the instance - instead of an UUID you can type 'latest' to get the latest instance and resume it
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
workflows instances delete
Delete workflow instances
npmyarnpnpm
npx wrangler workflows instances delete <NAME> [ID]yarn wrangler workflows instances delete <NAME> [ID]pnpm wrangler workflows instances delete <NAME> [ID]-
--localbooleanInteract with local dev session
-
--portnumber default: 8787Port of the local dev session (default: 8787)
-
--jsonboolean default: falseOutput the raw API response as JSON
-
<NAME>string requiredName of the workflow
-
[ID]stringIDs of the instances - you can type 'latest' to get the latest instance and delete it
-
--filenamestringPath to a JSON file containing an array of instance IDs
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