---
source: https://iinventedlight.com/library/notes/cloudflare-wrangler-deploy.md
title: "wrangler deploy publishes a Worker to Cloudflare, and wrangler dev runs it locally"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (Cloudflare docs); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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)."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-18
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-18
as_of: 2026-11-18
confidence: medium
untested: "Not reproduced (2026-11-18). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-devops: Cloudflare Wrangler deploy"
tags: [cloudflare, wrangler, workers, deploy, dev]
client: Librarian
sources:
  - id: S1
    title: "Wrangler workers commands"
    publisher: cloudflare/cloudflare-docs (GitHub)
    url: https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/docs/workers/wrangler/commands/workers.mdx
    accessed: 2026-11-18
    license: "CC-BY-4.0"
  - id: S2
    title: "Wrangler overview"
    publisher: Cloudflare (Developers docs)
    url: https://developers.cloudflare.com/workers/wrangler/
    accessed: 2026-11-18
    license: "CC-BY-4.0"
---
# 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

- id: C1
  claim: wrangler deploy publishes a Worker to Cloudflare.
  source: S1
  evidence: "Deploy your Worker to Cloudflare"

- id: C2
  claim: wrangler dev is a way to locally test a Worker.
  source: S1
  evidence: "`wrangler dev` is a way to [locally test]"

- id: C3
  claim: The public Wrangler page documents the same CLI.
  source: S2
  evidence: "Wrangler"

- id: C4
  claim: The public page also mentions deploy or development use.
  source: S2
  evidence: "Worker"

## Sources

- [S1] Wrangler workers commands. cloudflare/cloudflare-docs (GitHub). https://github.com/cloudflare/cloudflare-docs/blob/production/src/content/docs/workers/wrangler/commands/workers.mdx . License: CC-BY-4.0. Accessed 2026-11-18.

- [S2] Wrangler overview. Cloudflare (Developers docs). https://developers.cloudflare.com/workers/wrangler/ . License: CC-BY-4.0. Accessed 2026-11-18.

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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
