{
  "slug": "hf-repos-ls-lists-repositories-by-storage-usage-0fe62d0e8673",
  "title": "hf repos ls lists repositories by storage usage",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-05-28T15:08:07.000Z",
  "announced_at": "2026-05-28T15:08:07.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inspecting Hub repositories and storage usage, run `hf repos ls`; add filters for the repositories you need, and use `--limit 0` to include all results. Use `--format json` when scripting or `-q` for IDs only.",
    "examples": [
      "hf repos ls",
      "hf repos ls --namespace <org> --type dataset --search <query> --limit 0 --format json | jq '.[].id'",
      "hf repos ls -q"
    ],
    "gotchas": [
      "Version: v1.17.0",
      "--namespace <org>: Organization name; if omitted, lists repositories for the authenticated user.",
      "--type <model|dataset|space|bucket>: Filter by repository type. The docs do not say these values are mutually exclusive.",
      "--search <query>: Search repository names.",
      "--limit <integer>: Set the maximum number of results; default is 30, and 0 lists all results.",
      "--format <value>: Choose output format: `auto` (default), `human`, `agent`, `json`, or `quiet`.",
      "-q, --quiet: Equivalent to `--format quiet`; prints IDs only, one per line.",
      "Prerequisite: Install the `hf` CLI; the docs list the standalone installer, `huggingface_hub` package, and Homebrew. The CLI is included with `huggingface_hub`.",
      "Prerequisite: To list the authenticated user's repositories, authenticate with `hf auth login`; the docs do not specify a required token scope for listing.",
      "The default limit is 30.",
      "Results include models, datasets, spaces, and buckets, with storage size and percentage of namespace total, sorted by storage usage."
    ]
  },
  "why_it_matters": "Inspect Hub repositories and their storage usage while reviewing or maintaining repository assets.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.17.0",
    "https://github.com/huggingface/huggingface_hub/blob/v1.17.0/docs/source/en/guides/cli.md",
    "https://github.com/huggingface/huggingface_hub/blob/v1.17.0/src/huggingface_hub/cli/repos.py"
  ],
  "rank": 0.96032,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-9ff1dd3f17704b87-2:gate",
    "evidence_hash": "bad0de8b817b1083289bad47ec823477fc61cc7daff55867454c52bf6dd77cad"
  },
  "review": {
    "draft_hash": "6772fd2ea51e632864cb2f490579ff57b9c3d97a103f498f5aa3db1f8cc2190d",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.76 (>= 0.6 needed)."
  }
}
