{
  "description": "Download files or whole repositories from the Hub with hf download. Other hf commands and hf:// URIs are left out.",
  "name": "hf",
  "subcommands": [
    {
      "name": "download",
      "description": "Download a model, dataset or Space, or only some of its files, into the cache or a local folder.",
      "options": [
        {
          "names": [
            "--repo-type"
          ],
          "description": "Repository type",
          "args": {
            "name": "repo_type",
            "isOptional": false,
            "suggestions": [
              {
                "name": "model",
                "description": "Model"
              },
              {
                "name": "dataset",
                "description": "Dataset"
              },
              {
                "name": "space",
                "description": "Space"
              }
            ]
          }
        },
        {
          "names": [
            "--revision"
          ],
          "description": "Commit hash, branch name or tag.",
          "args": {
            "name": "revision",
            "description": "Commit hash, branch name or tag.",
            "isOptional": false
          }
        },
        {
          "names": [
            "--include"
          ],
          "description": "Include pattern",
          "args": {
            "name": "include",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--exclude"
          ],
          "description": "Exclude pattern",
          "args": {
            "name": "exclude",
            "isOptional": false,
            "isVariadic": true
          },
          "isRepeatable": true
        },
        {
          "names": [
            "--local-dir"
          ],
          "description": "Local folder",
          "args": {
            "name": "local_dir",
            "isOptional": false,
            "template": "folders"
          }
        },
        {
          "names": [
            "--cache-dir"
          ],
          "description": "Cache directory",
          "args": {
            "name": "cache_dir",
            "isOptional": false,
            "template": "folders"
          }
        },
        {
          "names": [
            "--dry-run"
          ],
          "description": "List the files that would be downloaded without downloading."
        }
      ],
      "args": [
        {
          "name": "repo_id",
          "description": "For example gpt2 or HuggingFaceH4/zephyr-7b-beta.",
          "isOptional": true
        },
        {
          "name": "filenames",
          "description": "Specific files in the repo; leave empty for the whole repository.",
          "isOptional": true,
          "isVariadic": true
        }
      ]
    }
  ]
}
