{
  "name": "ipatool",
  "description": "IPATool is a command line tool that allows you to search for iOS apps on the App Store and download a copy of the app package, known as an ipa file",
  "subcommands": [
    {
      "name": "auth",
      "description": "Authenticate with the App Store",
      "subcommands": [
        {
          "name": "info",
          "description": "Show current account info"
        },
        {
          "name": "login",
          "description": "Login to the App Store",
          "options": [
            {
              "names": [
                "--auth-code"
              ],
              "description": "2FA code for the Apple ID",
              "takes_arg": true,
              "arg": {
                "name": "2FA code"
              }
            },
            {
              "names": [
                "-e",
                "--email"
              ],
              "description": "Apple ID email address",
              "is_required": true
            },
            {
              "names": [
                "-p",
                "--password"
              ],
              "description": "Apple ID password",
              "is_required": true
            }
          ]
        },
        {
          "name": "revoke",
          "description": "Revoke your App Store credentials"
        }
      ]
    },
    {
      "name": "completion",
      "description": "Generate shell completion script",
      "subcommands": [
        {
          "name": "bash",
          "description": "Generate the autocompletion script for bash"
        },
        {
          "name": "fish",
          "description": "Generate the autocompletion script for fish"
        },
        {
          "name": "powershell",
          "description": "Generate the autocompletion script for powershell"
        },
        {
          "name": "zsh",
          "description": "Generate the autocompletion script for zsh"
        }
      ]
    },
    {
      "name": "download",
      "description": "Download (encrypted) iOS app packages from the App Store",
      "options": [
        {
          "names": [
            "-b",
            "--bundle-identifier"
          ],
          "description": "Bundle identifier of the app",
          "takes_arg": true,
          "arg": {
            "name": "identifier"
          },
          "is_required": true
        },
        {
          "names": [
            "-o",
            "--output"
          ],
          "description": "The destination path of the downloaded app package",
          "takes_arg": true,
          "arg": {
            "name": "output path",
            "template": "folders"
          }
        },
        {
          "names": [
            "--purchase"
          ],
          "description": "Obtain a license for the app if needed"
        }
      ]
    },
    {
      "name": "help",
      "description": "Display help for command",
      "args": [
        {
          "name": "command"
        }
      ]
    },
    {
      "name": "purchase",
      "description": "Obtain a license for the app from the App Store",
      "options": [
        {
          "names": [
            "-b",
            "--bundle-identifier"
          ],
          "description": "Bundle identifier of the app",
          "takes_arg": true,
          "arg": {
            "name": "identifier"
          },
          "is_required": true
        }
      ]
    },
    {
      "name": "search",
      "description": "Search for iOS apps available on the App Store",
      "options": [
        {
          "names": [
            "-l",
            "--limit"
          ],
          "description": "Limit the number of results",
          "takes_arg": true,
          "arg": {
            "name": "limit"
          }
        }
      ],
      "args": [
        {
          "name": "query"
        }
      ]
    }
  ],
  "options": [
    {
      "names": [
        "-h",
        "--help"
      ],
      "description": "Show help for ipatool"
    },
    {
      "names": [
        "--non-interactive"
      ],
      "description": "Run in non-interactive session"
    },
    {
      "names": [
        "--verbose"
      ],
      "description": "Enables verbose logs"
    },
    {
      "names": [
        "--format"
      ],
      "description": "Output format",
      "takes_arg": true,
      "arg": {
        "name": "format",
        "suggestions": [
          "text",
          "json"
        ]
      }
    },
    {
      "names": [
        "-v",
        "--version"
      ],
      "description": "Show version for ipatool"
    }
  ]
}
