Arguments
The path to an entry point for your Worker
Options
Basic Options
Name of the Worker
Date to use for compatibility checks
Flags to use for compatibility checksAlias:
--compatibility-flagUse the latest version of the Workers runtimeDefault:
trueStatic assets to be served. Replaces Workers Sites.
Build Options
Skip internal build steps and directly deploy scriptDefault:
falseMinify the script
The function that is called for each JSX element
The function that is called for each JSX fragment
Path to a custom tsconfig.json file
Server Options
IP address to listen on
Port to listen on
Port for devtools to connect to
IP address for devtools to connect to
Protocol to listen to requests on, defaults to httpChoices:
http, httpsPath to a custom certificate key
Path to a custom certificate
Routing Options
Routes to uploadAlias:
--routeHost to forward requests to, defaults to the zone of project
Host to act as origin in local mode, defaults to dev.host or route
Protocol to forward requests to host on, defaults to httpsChoices:
http, httpsEnvironment Options
A key-value pair to be injected into the script as a variable
A key-value pair to be substituted in the script
A module pair to be substituted in the script
Mode Options
Run on the global Cloudflare network with access to production resourcesDefault:
falseAlias: -rRun locally with remote bindings disabledAlias:
-lAdvanced Options
Specify directory to use for local persistence (defaults to .wrangler/state)
Auto reload HTML pages when change is detected in local mode
Test scheduled events by visiting /__scheduled in browserDefault:
falseSpecify logging levelChoices:
debug, info, log, warn, error, noneShow interactive dev session (defaults to true if the terminal supports interactivity)
Generate types from your Worker configuration
Examples
Start local development server
Develop with specific entry point
Run in remote mode
Specify custom port
Inject environment variables
Enable live reload
Test scheduled events
http://localhost:8787/__scheduled in your browser to trigger a scheduled event.