npm create cloudflare@latest -- --template cloudflare/templates/hello-world

Category: Cloudflare

npm create cloudflare@latest -- --template cloudflare/templates/hello-world

Scaffold a Worker from a GitHub template

The --template flag takes any GitHub repo in owner/repo form, so you can start from cloudflare/templates examples or your own private template. The extra `--` separates npm's own flags from the ones passed to C3. Plain `npm create cloudflare@latest my-worker` uses the built-in template list instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.