{
  "id": "wget2",
  "name": "GNU Wget2",
  "homepage": "https://gitlab.com/gnuwget/wget2",
  "description": "The successor of GNU Wget, a file and recursive website downloader.",
  "executables": [
    "wget2"
  ],
  "dotfiles": {
    "paths": [
      "~/.config/wget/wget2rc",
      "~/.wget2rc"
    ],
    "exclude": [],
    "secret": [],
    "side_effect": false,
    "secret_paths": [
      {
        "file": [
          "~/.config/wget/wget2rc",
          "~/.wget2rc"
        ],
        "match": {
          "prefix": [
            "password"
          ]
        }
      }
    ]
  },
  "commands": {
    "format": 1,
    "label": "Download files",
    "description": "Download one or more URLs, optionally recursively. Authentication, certificates, proxies and mirroring filters are left out.",
    "quality": "ai-draft",
    "parser": {
      "end_of_options": "--",
      "interleave": "permute",
      "long_equals": true,
      "short_attached": true,
      "short_bundles": false
    },
    "source": [
      {
        "id": "manual",
        "kind": "manual",
        "url": "https://gitlab.com/gnuwget/wget2/-/blob/master/docs/wget2.md",
        "revision": "2026-10-27",
        "evidence": "### `-q`, `--quiet`\n### `-i`, `--input-file=file`\n### `-t`, `--tries=number`\n### `-O`, `--output-document=file`\n### `-c`, `--continue`\n### `-P prefix`, `--directory-prefix=prefix`\n### `-U agent-string`, `--user-agent=agent-string`\n### `--max-threads=number`\n### `-r`, `--recursive`\n### `-l depth`, `--level=depth`\n### `-p`, `--page-requisites`\n### `-np`, `--no-parent`\n### `-nc`, `--no-clobber`\n"
      }
    ],
    "field": [
      {
        "id": "url",
        "label": "URLs",
        "type": "url",
        "position": 0,
        "multiple": true,
        "sources": [
          "manual"
        ]
      },
      {
        "id": "output_document",
        "label": "Output file",
        "description": "Concatenates all downloads into this file.",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "output"
        },
        "option": [
          "--output-document",
          "-O"
        ],
        "effect": "overwrite",
        "sources": [
          "manual"
        ]
      },
      {
        "id": "directory_prefix",
        "label": "Save into directory",
        "type": "path",
        "path": {
          "kind": "directory",
          "role": "output"
        },
        "option": [
          "--directory-prefix",
          "-P"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "input_file",
        "label": "Read URLs from file",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input"
        },
        "option": [
          "--input-file",
          "-i"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "continue",
        "label": "Resume partial download",
        "type": "boolean",
        "option": [
          "--continue",
          "-c"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "no_clobber",
        "label": "Do not overwrite existing files",
        "type": "boolean",
        "option": [
          "--no-clobber"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "recursive",
        "label": "Recursive download",
        "type": "boolean",
        "option": [
          "--recursive",
          "-r"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "level",
        "label": "Recursion depth",
        "type": "integer",
        "option": [
          "--level",
          "-l"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "no_parent",
        "label": "Do not ascend to parent directory",
        "type": "boolean",
        "option": [
          "--no-parent"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "page_requisites",
        "label": "Fetch page requisites",
        "type": "boolean",
        "option": [
          "--page-requisites",
          "-p"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "tries",
        "label": "Retries",
        "type": "integer",
        "option": [
          "--tries",
          "-t"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "max_threads",
        "label": "Max threads",
        "type": "integer",
        "option": [
          "--max-threads"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "user_agent",
        "label": "User agent",
        "type": "string",
        "option": [
          "--user-agent",
          "-U"
        ],
        "sources": [
          "manual"
        ]
      },
      {
        "id": "quiet",
        "label": "Quiet",
        "type": "boolean",
        "option": [
          "--quiet",
          "-q"
        ],
        "sources": [
          "manual"
        ]
      }
    ],
    "task": [
      {
        "id": "download",
        "label": "Download URL",
        "fields": [
          "url",
          "directory_prefix",
          "continue"
        ],
        "required": [
          "url"
        ]
      },
      {
        "id": "recursive",
        "label": "Recursive download",
        "fields": [
          "url",
          "recursive",
          "level",
          "no_parent",
          "directory_prefix"
        ],
        "required": [
          "url"
        ],
        "set": {
          "recursive": [
            true
          ],
          "no_parent": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "url",
          "output_document",
          "directory_prefix",
          "continue",
          "recursive",
          "level",
          "no_parent"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "input_file",
          "no_clobber",
          "page_requisites",
          "tries",
          "max_threads",
          "user_agent",
          "quiet"
        ]
      }
    ]
  }
}
