Scaffold a new Worker project
setup & auth
// what it does
Scaffolds a new Worker — wrangler config, entry point, and starter package — with `-y` accepting all defaults for a quick non-interactive setup. Reach for it to start a brand-new Worker instead of hand-writing wrangler.jsonc.
// shell
$ wrangler init <name> -y// gotcha
In wrangler v4 `init` delegates to create-cloudflare (C3), so it fetches the latest template over the network and may prompt for git/deploy unless you pass `-y`. Confirm a `compatibility_date` is set in the generated config before you ship.