Skip to main content
Initialize a basic Worker project.
wrangler init [name] [options]

Arguments

name
string
The name of your worker

Options

--yes
boolean
Answer “yes” to any prompts for new projectsAlias: -y
--from-dash
string
The name of the Worker you wish to download from the Cloudflare dashboard for local development
--delegate-c3
boolean
Delegate to Create Cloudflare CLI (C3)Default: trueAlias: --c3

Examples

Create a new Worker interactively

wrangler init

Create a Worker with a specific name

wrangler init my-worker

Skip prompts and accept defaults

wrangler init my-worker --yes

Download existing Worker from dashboard

wrangler init --from-dash my-existing-worker

Behavior

By default, wrangler init delegates to the Create Cloudflare CLI (C3) to scaffold new projects. This provides an interactive setup experience with framework detection and template selection. When using --from-dash, Wrangler downloads the Worker code and configuration from your Cloudflare account and creates a local project structure.

Build docs developers (and LLMs) love