{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "dev"
        ],
        "label": "Local dev server",
        "description": "Start a local server for the worker.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config",
              "-c"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "host",
            "label": "Host to forward to",
            "type": "string",
            "option": [
              "--host",
              "-h"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "ip",
            "label": "IP to listen on",
            "type": "string",
            "option": [
              "--ip",
              "-i"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "dev",
            "label": "Run dev server",
            "fields": [
              "config",
              "env",
              "port"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "config",
              "env",
              "port"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "host",
              "ip"
            ]
          }
        ]
      },
      {
        "path": [
          "publish"
        ],
        "label": "Publish worker",
        "description": "Publish the worker to Cloudflare.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config",
              "-c"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "publish",
            "label": "Publish",
            "fields": [
              "config",
              "env"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "config",
              "env"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "tail"
        ],
        "label": "Tail logs",
        "description": "Aggregate logs from the production worker.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config",
              "-c"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "format",
            "label": "Output format",
            "type": "string",
            "option": [
              "--format",
              "-f"
            ],
            "suggestions": [
              {
                "value": "json",
                "label": "json"
              },
              {
                "value": "pretty",
                "label": "pretty"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Port",
            "type": "integer",
            "option": [
              "--port",
              "-p"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "tail",
            "label": "Tail logs",
            "fields": [
              "config",
              "env",
              "format"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "config",
              "env",
              "format"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "port",
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "init"
        ],
        "label": "Create wrangler.toml",
        "description": "Create a wrangler.toml for an existing project.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/wrangler.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Worker name",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "config",
            "label": "Config file",
            "type": "path",
            "option": [
              "--config",
              "-c"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "env",
            "label": "Environment",
            "type": "string",
            "option": [
              "--env",
              "-e"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "site",
            "label": "Workers Sites project",
            "type": "boolean",
            "option": [
              "--site",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "type",
            "label": "Project type",
            "type": "string",
            "option": [
              "--type",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "init",
            "label": "Initialize",
            "fields": [
              "name",
              "type"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "type"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "config",
              "env",
              "site"
            ]
          }
        ]
      }
    ]
  }
}
