id = "wrangler"
name = "Wrangler"
homepage = "https://developers.cloudflare.com/workers/wrangler/"
description = "Command-line interface for all things Cloudflare Workers"
icon = "SimpleIcons:cloudflareworkers"
executables = ["wrangler"]
[dotfiles]
paths = []
exclude = [
"~/Library/Caches/.wrangler/",
"~/.cache/.wrangler/",
"%LOCALAPPDATA%/xdg.cache/.wrangler/",
]
secret = [
"~/.wrangler/config/*.toml",
"~/Library/Preferences/.wrangler/config/*.toml",
"~/.config/.wrangler/config/*.toml",
"%APPDATA%/xdg.config/.wrangler/config/*.toml",
]
[commands]
format = 1
label = "Wrangler (legacy v1 commands)"
description = "Develop, publish and tail a Cloudflare Worker using the commands in the Fig spec. KV, secrets and routes are left out."
quality = "ai-draft"
base = "fig:wrangler"
parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false }
[[commands.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts"
license = "MIT"
[[commands.subcommand]]
path = ["dev"]
label = "Local dev server"
description = "Start a local server for the worker."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "config"
label = "Config file"
type = "path"
option = ["--config", "-c"]
path = { kind = "file", role = "input" }
sources = ["fig"]
[[commands.subcommand.field]]
id = "env"
label = "Environment"
type = "string"
option = ["--env", "-e"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "host"
label = "Host to forward to"
type = "string"
option = ["--host", "-h"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "ip"
label = "IP to listen on"
type = "string"
option = ["--ip", "-i"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "port"
label = "Port"
type = "integer"
option = ["--port", "-p"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "dev"
label = "Run dev server"
fields = ["config", "env", "port"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["config", "env", "port"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["host", "ip"]
[[commands.subcommand]]
path = ["publish"]
label = "Publish worker"
description = "Publish the worker to Cloudflare."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "config"
label = "Config file"
type = "path"
option = ["--config", "-c"]
path = { kind = "file", role = "input" }
sources = ["fig"]
[[commands.subcommand.field]]
id = "env"
label = "Environment"
type = "string"
option = ["--env", "-e"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "verbose"
label = "Verbose"
type = "boolean"
option = ["--verbose"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "publish"
label = "Publish"
fields = ["config", "env"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["config", "env"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["verbose"]
[[commands.subcommand]]
path = ["tail"]
label = "Tail logs"
description = "Aggregate logs from the production worker."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "config"
label = "Config file"
type = "path"
option = ["--config", "-c"]
path = { kind = "file", role = "input" }
sources = ["fig"]
[[commands.subcommand.field]]
id = "env"
label = "Environment"
type = "string"
option = ["--env", "-e"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "format"
label = "Output format"
type = "string"
option = ["--format", "-f"]
suggestions = [{ value = "json", label = "json" }, { value = "pretty", label = "pretty" }]
sources = ["fig"]
[[commands.subcommand.field]]
id = "port"
label = "Port"
type = "integer"
option = ["--port", "-p"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "verbose"
label = "Verbose"
type = "boolean"
option = ["--verbose"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "tail"
label = "Tail logs"
fields = ["config", "env", "format"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["config", "env", "format"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["port", "verbose"]
[[commands.subcommand]]
path = ["init"]
label = "Create wrangler.toml"
description = "Create a wrangler.toml for an existing project."
[[commands.subcommand.source]]
id = "fig"
kind = "completion"
url = "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts"
license = "MIT"
[[commands.subcommand.field]]
id = "name"
label = "Worker name"
type = "string"
position = 0
sources = ["fig"]
[[commands.subcommand.field]]
id = "config"
label = "Config file"
type = "path"
option = ["--config", "-c"]
path = { kind = "file", role = "input" }
sources = ["fig"]
[[commands.subcommand.field]]
id = "env"
label = "Environment"
type = "string"
option = ["--env", "-e"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "site"
label = "Workers Sites project"
type = "boolean"
option = ["--site", "-s"]
sources = ["fig"]
[[commands.subcommand.field]]
id = "type"
label = "Project type"
type = "string"
option = ["--type", "-t"]
sources = ["fig"]
[[commands.subcommand.task]]
id = "init"
label = "Initialize"
fields = ["name", "type"]
[[commands.subcommand.group]]
id = "basic"
label = "Basic"
fields = ["name", "type"]
[[commands.subcommand.group]]
id = "advanced"
label = "Advanced"
fields = ["config", "env", "site"]