wrangler generate [name] [template]

Generate a new worker project

Arguments

NameDescription
nameThe name of your worker! [default: worker]
templateA link to a GitHub template! Defaults to https://github.com/cloudflare/worker-template

Options

NameDescription
-c, --config <wrangler.toml>Path to configuration file [default: wrangler.toml]
-e, --env <environment>Environment to perform a command on
-h, --helpPrints help information
--verboseToggle verbose output (when applicable)
-s, --site [site]Initializes a Workers Sites project. Overrides 'type' and 'template'
-t, --type [type]The type of project you want generated