{
  "id": "fastly",
  "name": "Fastly CLI",
  "homepage": "https://www.fastly.com/documentation/reference/cli/",
  "description": "Build, deploy and configure Fastly services from your terminal.",
  "icon": "SimpleIcons:fastly",
  "executables": [
    "fastly"
  ],
  "dotfiles": {
    "paths": [
      "[appData]/fastly/config.toml",
      "~/.fastly/config.toml"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": [
          "[appData]/fastly/config.toml",
          "~/.fastly/config.toml"
        ],
        "match": {
          "key_path": [
            "auth.tokens.*.token",
            "auth.tokens.*.access_token",
            "auth.tokens.*.refresh_token",
            "profile.*.token",
            "profile.*.access_token",
            "profile.*.refresh_token"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Fastly",
    "description": "Purge cache, build and deploy Compute packages. Everything else is left out.",
    "quality": "ai-draft",
    "base": "fig:fastly",
    "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/fastly.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "purge"
        ],
        "label": "Purge cache",
        "description": "Pick exactly one of URL, key or all.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/fastly.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "service_id",
            "label": "Service ID",
            "type": "string",
            "option": [
              "--service-id"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "url",
            "label": "URL",
            "type": "string",
            "option": [
              "--url"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "key",
            "label": "Surrogate key",
            "type": "string",
            "option": [
              "--key"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "all",
            "label": "Purge everything",
            "type": "boolean",
            "option": [
              "--all"
            ],
            "effect": "delete",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "soft",
            "label": "Soft purge",
            "type": "boolean",
            "option": [
              "--soft"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "url",
            "label": "Purge a URL",
            "fields": [
              "service_id",
              "url",
              "soft"
            ],
            "required": [
              "url"
            ]
          },
          {
            "id": "key",
            "label": "Purge a key",
            "fields": [
              "service_id",
              "key",
              "soft"
            ],
            "required": [
              "key"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "service_id",
              "url",
              "key",
              "all"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "soft"
            ]
          }
        ]
      },
      {
        "path": [
          "compute",
          "build"
        ],
        "label": "Build Compute package",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/fastly.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "Package name",
            "type": "string",
            "option": [
              "--name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "language",
            "label": "Language",
            "type": "string",
            "option": [
              "--language"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "include_source",
            "label": "Include source",
            "type": "boolean",
            "option": [
              "--include-source"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "timeout",
            "label": "Timeout (s)",
            "type": "integer",
            "option": [
              "--timeout"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_verification",
            "label": "Skip verification",
            "type": "boolean",
            "option": [
              "--skip-verification"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "build",
            "label": "Build",
            "fields": [
              "name",
              "language"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "language",
              "include_source"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "timeout",
              "skip_verification"
            ]
          }
        ]
      },
      {
        "path": [
          "compute",
          "deploy"
        ],
        "label": "Deploy Compute package",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/fastly.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "service_id",
            "label": "Service ID",
            "type": "string",
            "option": [
              "--service-id"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "service_name",
            "label": "Service name",
            "type": "string",
            "option": [
              "--service-name"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "package",
            "label": "Package",
            "type": "path",
            "option": [
              "--package"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "comment",
            "label": "Comment",
            "type": "string",
            "option": [
              "--comment"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "domain",
            "label": "Domain",
            "type": "string",
            "option": [
              "--domain"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "version",
            "label": "Version",
            "type": "string",
            "option": [
              "--version"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "deploy",
            "label": "Deploy",
            "fields": [
              "service_id",
              "package",
              "comment"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "service_id",
              "service_name",
              "package",
              "comment"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "version",
              "domain"
            ]
          }
        ]
      }
    ]
  }
}
