{
  "id": "forge-cli",
  "name": "Forge CLI",
  "description": "Command line interface for building and managing Atlassian Forge apps.",
  "homepage": "https://developer.atlassian.com/platform/forge/",
  "executables": [
    "forge"
  ],
  "commands": {
    "format": 1,
    "label": "Forge CLI",
    "description": "Create, deploy and install Forge apps. Logs, variables, providers and tunnel are left out.",
    "quality": "ai-draft",
    "base": "fig:@forge/cli",
    "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/@forge/cli.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "verbose",
        "label": "Verbose",
        "type": "boolean",
        "option": [
          "--verbose"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "verbose"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "create"
        ],
        "label": "Create an app",
        "description": "Create a Forge app from a template.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/@forge/cli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "name",
            "label": "App name",
            "type": "string",
            "position": 0,
            "sources": [
              "fig"
            ]
          },
          {
            "id": "template",
            "label": "Template",
            "type": "string",
            "option": [
              "--template",
              "-t"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "directory",
            "label": "Directory",
            "type": "string",
            "option": [
              "--directory",
              "-d"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "create",
            "label": "Create",
            "fields": [
              "name",
              "template",
              "directory"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "name",
              "template",
              "directory"
            ]
          }
        ]
      },
      {
        "path": [
          "deploy"
        ],
        "label": "Deploy",
        "description": "Deploy the app to an environment.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/@forge/cli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "environment",
            "label": "Environment",
            "type": "string",
            "option": [
              "--environment",
              "-e"
            ],
            "suggestions": [
              {
                "value": "development",
                "label": "development"
              },
              {
                "value": "staging",
                "label": "staging"
              },
              {
                "value": "production",
                "label": "production"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "no_verify",
            "label": "Skip pre-deployment checks",
            "type": "boolean",
            "option": [
              "--no-verify",
              "-f"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "non_interactive",
            "label": "Non-interactive",
            "type": "boolean",
            "option": [
              "--non-interactive"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "deploy",
            "label": "Deploy",
            "fields": [
              "environment"
            ],
            "required": [
              "environment"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "environment"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "no_verify",
              "non_interactive"
            ]
          }
        ]
      },
      {
        "path": [
          "install"
        ],
        "label": "Install on a site",
        "description": "Install or upgrade the app on an Atlassian site.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/@forge/cli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "environment",
            "label": "Environment",
            "type": "string",
            "option": [
              "--environment",
              "-e"
            ],
            "suggestions": [
              {
                "value": "development",
                "label": "development"
              },
              {
                "value": "staging",
                "label": "staging"
              },
              {
                "value": "production",
                "label": "production"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "site",
            "label": "Site URL",
            "description": "For example example.atlassian.net.",
            "type": "string",
            "option": [
              "--site",
              "-s"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "product",
            "label": "Product",
            "type": "string",
            "option": [
              "--product",
              "-p"
            ],
            "suggestions": [
              {
                "value": "Jira",
                "label": "Jira"
              },
              {
                "value": "Confluence",
                "label": "Confluence"
              },
              {
                "value": "Compass",
                "label": "Compass"
              }
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "upgrade",
            "label": "Upgrade existing",
            "type": "boolean",
            "option": [
              "--upgrade"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "confirm_scopes",
            "label": "Skip scope confirmation",
            "type": "boolean",
            "option": [
              "--confirm-scopes"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "non_interactive",
            "label": "Non-interactive",
            "type": "boolean",
            "option": [
              "--non-interactive"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "install",
            "label": "Install",
            "fields": [
              "environment",
              "site",
              "product"
            ],
            "required": [
              "environment",
              "site",
              "product"
            ]
          },
          {
            "id": "upgrade",
            "label": "Upgrade",
            "fields": [
              "environment",
              "site",
              "product",
              "upgrade"
            ],
            "required": [
              "environment",
              "site",
              "product"
            ],
            "set": {
              "upgrade": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "environment",
              "site",
              "product",
              "upgrade"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "confirm_scopes",
              "non_interactive"
            ]
          }
        ]
      },
      {
        "path": [
          "lint"
        ],
        "label": "Lint",
        "description": "Check the source files for common errors.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/@forge/cli.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "fix",
            "label": "Fix automatically",
            "type": "boolean",
            "option": [
              "--fix"
            ],
            "effect": "overwrite",
            "sources": [
              "fig"
            ]
          },
          {
            "id": "environment",
            "label": "Environment",
            "type": "string",
            "option": [
              "--environment",
              "-e"
            ],
            "suggestions": [
              {
                "value": "development",
                "label": "development"
              },
              {
                "value": "staging",
                "label": "staging"
              },
              {
                "value": "production",
                "label": "production"
              }
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "lint",
            "label": "Lint",
            "fields": [
              "environment"
            ],
            "required": []
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "fix",
              "environment"
            ]
          }
        ]
      }
    ]
  }
}
