{
  "id": "torrra",
  "name": "torrra",
  "homepage": "https://torrra.readthedocs.io/en/latest/",
  "description": "Find and download torrents without leaving your CLI.",
  "executables": [
    "torrra"
  ],
  "dotfiles": {
    "paths": [],
    "exclude": [],
    "secret": [
      "~/.config/torrra/config.toml",
      "%APPDATA%/torrra/config.toml"
    ]
  },
  "commands": {
    "format": 1,
    "label": "Search or download torrents",
    "description": "Direct search through the default indexer, or download a magnet URI, URL or .torrent file. Indexer connection options are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "readme",
        "kind": "manual",
        "url": "https://github.com/stabldev/torrra",
        "revision": "2026-10-27",
        "evidence": "torrra search \"arch linux iso\"\ntorrra search \"arch linux iso\" --no-cache\ntorrra download \"magnet:?xt=urn:btih:...\"\ntorrra download \"/path/to/file.torrent\"\ntorrra download \"magnet:?xt=urn:btih:...\" --save-path /downloads/linux\n"
      }
    ],
    "subcommand": [
      {
        "path": [
          "search"
        ],
        "label": "Search",
        "source": [
          {
            "id": "readme",
            "kind": "manual",
            "url": "https://github.com/stabldev/torrra",
            "revision": "2026-10-27",
            "evidence": "torrra search \"arch linux iso\"\ntorrra search \"arch linux iso\" --no-cache\n"
          }
        ],
        "field": [
          {
            "id": "query",
            "label": "Search query",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "readme"
            ]
          },
          {
            "id": "no_cache",
            "label": "Skip cache",
            "type": "boolean",
            "option": [
              "--no-cache"
            ],
            "sources": [
              "readme"
            ]
          }
        ],
        "task": [
          {
            "id": "search",
            "label": "Search",
            "fields": [
              "query",
              "no_cache"
            ],
            "required": [
              "query"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "query",
              "no_cache"
            ]
          }
        ]
      },
      {
        "path": [
          "download"
        ],
        "label": "Download",
        "source": [
          {
            "id": "readme",
            "kind": "manual",
            "url": "https://github.com/stabldev/torrra",
            "revision": "2026-10-27",
            "evidence": "torrra download \"magnet:?xt=urn:btih:...\"\ntorrra download \"/path/to/file.torrent\"\ntorrra download \"magnet:?xt=urn:btih:...\" --save-path /downloads/linux\n"
          }
        ],
        "field": [
          {
            "id": "source",
            "label": "Magnet URI, URL or .torrent file",
            "type": "string",
            "position": 0,
            "min": 1,
            "sources": [
              "readme"
            ]
          },
          {
            "id": "save_path",
            "label": "Save to",
            "type": "path",
            "path": {
              "kind": "directory",
              "role": "output"
            },
            "option": [
              "--save-path"
            ],
            "sources": [
              "readme"
            ]
          }
        ],
        "task": [
          {
            "id": "download",
            "label": "Download",
            "fields": [
              "source",
              "save_path"
            ],
            "required": [
              "source"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "source",
              "save_path"
            ]
          }
        ]
      }
    ]
  }
}
