All apps/Wrangler

Wrangler

wrangler

Command-line interface for all things Cloudflare Workers

Runs as wrangler|macOS, Linux, Windows|developers.cloudflare.com

Command form

ai-draft · 4 tasks · 18 fields

Develop, publish and tail a Cloudflare Worker using the commands in the Fig spec. KV, secrets and routes are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui wrangler

wrangler dev

Local dev server

Start a local server for the worker.

Local dev serverExample values, fixed in this page — nothing here reaches a terminal
Basic
Config file
file
Environment
string
Port
integer
TasksEach one presets the form for one job
Run dev server
configenvport
ParametersOnly these flags are editable in the form
Config file
path
--config-c
Environment
string
--env-e
Host to forward to
string
--host-h
IP to listen on
string
--ip-i
Port
integer
--port-p

wrangler publish

Publish worker

Publish the worker to Cloudflare.

Publish workerExample values, fixed in this page — nothing here reaches a terminal
Basic
Config file
file
Environment
string
TasksEach one presets the form for one job
Publish
configenv
ParametersOnly these flags are editable in the form
Config file
path
--config-c
Environment
string
--env-e
Verbose
boolean
--verbose

wrangler tail

Tail logs

Aggregate logs from the production worker.

Tail logsExample values, fixed in this page — nothing here reaches a terminal
Basic
Config file
file
Environment
string
Output format
string
TasksEach one presets the form for one job
Tail logs
configenvformat
ParametersOnly these flags are editable in the form
Config file
path
--config-c
Environment
string
--env-e
Output format
string
--format-fjsonpretty
Port
integer
--port-p
Verbose
boolean
--verbose

wrangler init

Create wrangler.toml

Create a wrangler.toml for an existing project.

Create wrangler.tomlExample values, fixed in this page — nothing here reaches a terminal
Basic
Worker name
string
Project type
string
TasksEach one presets the form for one job
Initialize
nametype
ParametersOnly these flags are editable in the form
Worker name
string · positional 0
Config file
path
--config-c
Environment
string
--env-e
Workers Sites project
boolean
--site-s
Project type
string
--type-t
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed wrangler against its version. A form that does not match your version is not offered.