FahamLah

Commands

npx wrangler deploy

npx wrangler deploy [--env <name>] [--dry-run]

Risk: Careful

What it does

Uploads your Worker and sends all traffic to the new version.

When to use it

In the deploy job, after every check passed.

Example

$ npx wrangler deploy --dry-run

Check the config and files. Upload nothing.

$ npx wrangler deploy --env staging

Ship to the staging copy (a Worker named <name>-staging).