{
  "id": "ipatool",
  "name": "ipatool",
  "description": "Command-line tool to search for iOS apps on the App Store and download their ipa packages.",
  "homepage": "https://github.com/majd/ipatool",
  "executables": [
    "ipatool"
  ],
  "commands": {
    "format": 1,
    "label": "ipatool",
    "description": "Search the App Store, obtain licenses and download ipa files. Authentication and completion commands are left out.",
    "quality": "ai-draft",
    "base": "fig:ipatool",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "src",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/ipatool.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "non_interactive",
        "label": "Non-interactive",
        "description": "Run in a non-interactive session.",
        "type": "boolean",
        "option": [
          "--non-interactive"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "verbose",
        "label": "Verbose logs",
        "description": "Enable verbose logs.",
        "type": "boolean",
        "option": [
          "--verbose"
        ],
        "sources": [
          "src"
        ]
      },
      {
        "id": "format",
        "label": "Output format",
        "description": "Output format.",
        "type": "string",
        "option": [
          "--format"
        ],
        "suggestions": [
          {
            "value": "text",
            "label": "text"
          },
          {
            "value": "json",
            "label": "json"
          }
        ],
        "sources": [
          "src"
        ]
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "non_interactive",
          "verbose",
          "format"
        ]
      }
    ],
    "subcommand": [
      {
        "path": [
          "search"
        ],
        "label": "Search the App Store",
        "description": "Search for iOS apps available on the App Store.",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ipatool.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "query",
            "label": "Search term",
            "description": "What to search for.",
            "type": "string",
            "position": 0,
            "sources": [
              "src"
            ]
          },
          {
            "id": "limit",
            "label": "Result limit",
            "description": "Limit the number of results.",
            "type": "integer",
            "option": [
              "--limit",
              "-l"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "search",
            "label": "Search",
            "fields": [
              "query",
              "limit"
            ],
            "required": [
              "query"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "query",
              "limit"
            ]
          }
        ]
      },
      {
        "path": [
          "download"
        ],
        "label": "Download an app",
        "description": "Download an encrypted ipa package.",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ipatool.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "bundle_identifier",
            "label": "Bundle identifier",
            "description": "Bundle identifier of the app.",
            "type": "string",
            "option": [
              "--bundle-identifier",
              "-b"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "output",
            "label": "Output path",
            "description": "Destination path of the downloaded package.",
            "type": "path",
            "option": [
              "--output",
              "-o"
            ],
            "path": {
              "kind": "directory",
              "role": "output",
              "must_exist": false
            },
            "effect": "overwrite",
            "sources": [
              "src"
            ]
          },
          {
            "id": "purchase",
            "label": "Obtain license if needed",
            "description": "Obtain a license for the app if needed.",
            "type": "boolean",
            "option": [
              "--purchase"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "download",
            "label": "Download",
            "fields": [
              "bundle_identifier",
              "output",
              "purchase"
            ],
            "required": [
              "bundle_identifier"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "bundle_identifier",
              "output",
              "purchase"
            ]
          }
        ]
      },
      {
        "path": [
          "purchase"
        ],
        "label": "Obtain a license",
        "description": "Obtain a license for the app from the App Store.",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/ipatool.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "bundle_identifier",
            "label": "Bundle identifier",
            "description": "Bundle identifier of the app.",
            "type": "string",
            "option": [
              "--bundle-identifier",
              "-b"
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "purchase",
            "label": "Purchase license",
            "fields": [
              "bundle_identifier"
            ],
            "required": [
              "bundle_identifier"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "bundle_identifier"
            ]
          }
        ]
      }
    ]
  }
}
