{
  "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",
  "options": [
    {
      "names": [
        "-h",
        "--help"
      ],
      "description": "Show help for ipatool",
      "isPersistent": true
    },
    {
      "names": [
        "--non-interactive"
      ],
      "description": "Run in non-interactive session",
      "isPersistent": true
    },
    {
      "names": [
        "--verbose"
      ],
      "description": "Enables verbose logs",
      "isPersistent": true
    },
    {
      "names": [
        "--format"
      ],
      "description": "Output format",
      "isPersistent": true,
      "args": [
        {
          "name": "format",
          "suggestions": [
            "text",
            "json"
          ]
        }
      ]
    },
    {
      "names": [
        "-v",
        "--version"
      ],
      "description": "Show version for ipatool"
    }
  ],
  "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",
              "args": [
                {
                  "name": "2FA code"
                }
              ]
            },
            {
              "names": [
                "-e",
                "--email"
              ],
              "description": "Apple ID email address",
              "isRequired": true
            },
            {
              "names": [
                "-p",
                "--password"
              ],
              "description": "Apple ID password",
              "isRequired": 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",
          "isRequired": true,
          "args": [
            {
              "name": "identifier",
              "filterStrategy": "fuzzy"
            }
          ]
        },
        {
          "names": [
            "-o",
            "--output"
          ],
          "description": "The destination path of the downloaded app package",
          "args": [
            {
              "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",
          "isOptional": true,
          "template": "help"
        }
      ]
    },
    {
      "name": "purchase",
      "description": "Obtain a license for the app from the App Store",
      "options": [
        {
          "names": [
            "-b",
            "--bundle-identifier"
          ],
          "description": "Bundle identifier of the app",
          "isRequired": true,
          "args": [
            {
              "name": "identifier",
              "filterStrategy": "fuzzy"
            }
          ]
        }
      ]
    },
    {
      "name": "search",
      "description": "Search for iOS apps available on the App Store",
      "options": [
        {
          "names": [
            "-l",
            "--limit"
          ],
          "description": "Limit the number of results",
          "args": [
            {
              "name": "limit"
            }
          ]
        }
      ],
      "args": [
        {
          "name": "query"
        }
      ]
    }
  ]
}
