wrangler generate [name] [template]
Generate a new worker project
Arguments
Name | Description |
---|
name | The name of your worker! [default: worker] |
template | A link to a GitHub template! Defaults to
https://github.com/cloudflare/worker-template |
Options
Name | Description |
---|
-c, --config <wrangler.toml> | Path to configuration file [default: wrangler.toml] |
-e, --env <environment> | Environment to perform a command on |
-h, --help | Prints help information |
--verbose | Toggle 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 |