还没翻译·译自英文(developers.cloudflare.com)·本页 28 段都还没译
Wrangler commands for managing Workers for Platforms dispatch namespace using Wrangler.
List all dispatch namespaces
npx wrangler dispatch-namespace list
yarn wrangler dispatch-namespace list
pnpm wrangler dispatch-namespace list
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile
Get information about a dispatch namespace
npx wrangler dispatch-namespace get <NAME>
yarn wrangler dispatch-namespace get <NAME>
pnpm wrangler dispatch-namespace get <NAME>
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile
Create a dispatch namespace
npx wrangler dispatch-namespace create <NAME>
yarn wrangler dispatch-namespace create <NAME>
pnpm wrangler dispatch-namespace create <NAME>
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile
Delete a dispatch namespace
npx wrangler dispatch-namespace delete <NAME>
yarn wrangler dispatch-namespace delete <NAME>
pnpm wrangler dispatch-namespace delete <NAME>
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile
Note
You must delete all user Workers in the dispatch namespace before it can be deleted.
Rename a dispatch namespace
npx wrangler dispatch-namespace rename <OLDNAME> <NEWNAME>
yarn wrangler dispatch-namespace rename <OLDNAME> <NEWNAME>
pnpm wrangler dispatch-namespace rename <OLDNAME> <NEWNAME>
-
<OLDNAME> string required
Name of the dispatch namespace
-
<NEWNAME> string required
New name of the dispatch namespace
-
--v boolean alias: --version
Show version number
-
--cwd string
Run as if Wrangler was started in the specified directory instead of the current working directory
-
--config string alias: --c
Path to Wrangler configuration file
-
--env string alias: --e
Environment to use for operations, and for selecting .env and .dev.vars files
-
--env-file string
Path to an .env file to load - can be specified multiple times - values from earlier files are overridden by values in later files
-
--install-skills boolean default: false
Install Cloudflare skills for detected AI coding agents before running the command
-
--profile string
Use a specific auth profile