Skip to main content

Workers for Platforms

还没翻译译自英文(developers.cloudflare.com)本页 28 段都还没译

Wrangler commands for managing Workers for Platforms dispatch namespace using Wrangler.

dispatch-namespace list

List all dispatch namespaces

npx wrangler dispatch-namespace list
yarn wrangler dispatch-namespace list
pnpm wrangler dispatch-namespace list

Global flags

dispatch-namespace get

Get information about a dispatch namespace

npx wrangler dispatch-namespace get <NAME>
yarn wrangler dispatch-namespace get <NAME>
pnpm wrangler dispatch-namespace get <NAME>
  • <NAME> string required

    Name of the dispatch namespace

Global flags

dispatch-namespace create

Create a dispatch namespace

npx wrangler dispatch-namespace create <NAME>
yarn wrangler dispatch-namespace create <NAME>
pnpm wrangler dispatch-namespace create <NAME>
  • <NAME> string required

    Name of the dispatch namespace

Global flags

dispatch-namespace delete

Delete a dispatch namespace

npx wrangler dispatch-namespace delete <NAME>
yarn wrangler dispatch-namespace delete <NAME>
pnpm wrangler dispatch-namespace delete <NAME>
  • <NAME> string required

    Name of the dispatch namespace

Global flags

Note

You must delete all user Workers in the dispatch namespace before it can be deleted.

dispatch-namespace rename

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

Global flags