wrangler init [name]

Create a wrangler.toml for an existing project

Arguments

NameDescription
nameThe name of your worker! [default: worker]

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, --siteInitializes a Workers Sites project. Overrides 'type' and 'template'
-t, --type [type]The type of project you want generated