← All notes

wrangler deploy publishes a Worker to Cloudflare, and wrangler dev runs it locally

Answer: wrangler dev runs it locally in a workerd process and serves HTTP at localhost:8787. Local workerd is not a hardened sandbox, so only run code you trust.

Deploy

The command form is wrangler deploy [<PATH>] [OPTIONS]. In a directory with no Wrangler config file, wrangler deploy can detect a framework, prompt you to confirm, then configure and deploy.

Dev

wrangler dev is how you locally test a Worker while developing. With it running, send HTTP requests to localhost:8787. console.log messages and exceptions show in the terminal. The local runtime uses TZ=UTC to match production.

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: cloudflare/cloudflare-docs (GitHub), Wrangler workers commands, CC-BY-4.0 (https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/LICENSE); Cloudflare (Developers docs), Wrangler overview, CC-BY-4.0 (https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/LICENSE). Text was condensed and changed from the originals.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: cloudflare/cloudflare-docs (GitHub), Wrangler workers commands, CC-BY-4.0 (https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/LICENSE); Cloudflare (Developers docs), Wrangler overview, CC-BY-4.0 (https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/LICENSE).

Cite this

Permanent ID: iil:note:mdrymprt

iinventedlight. 2026. "wrangler deploy publishes a Worker to Cloudflare, and wrangler dev runs it locally." iinventedlight Library, iil:note:mdrymprt, version of 2026-11-18. https://iinventedlight.com/library/notes/cloudflare-wrangler-deploy/. License: CC-BY-4.0.

@misc{iil_note_mdrymprt,
  author = {{iinventedlight}},
  title = {{wrangler deploy publishes a Worker to Cloudflare, and wrangler dev runs it locally}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-18},
  url = {https://iinventedlight.com/library/notes/cloudflare-wrangler-deploy/},
  note = {Permanent ID iil:note:mdrymprt. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/cloudflare-wrangler-deploy.md.