{
  "slug": "hf-models-datasets-spaces-endpoints-and-cache-ls-add-format-options-a9ae5fae5e1f",
  "title": "hf models, datasets, spaces, endpoints, and cache ls add format options",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-02-03T16:19:53.000Z",
  "announced_at": "2026-02-03T16:19:53.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a repository maintenance script consumes one of the supported `ls` listings, select JSON with `--format json` or print IDs only with `--quiet` (`-q`).",
    "examples": [
      "hf models ls --format json",
      "hf datasets ls --quiet",
      "hf cache ls --format json"
    ],
    "gotchas": [
      "Version: v1.4.0",
      "--format [table|json]: Selects table or JSON output; defaults to table.",
      "-q, --quiet: Prints only IDs, one per line. Documentation does not state whether this can be combined with `--format`."
    ]
  },
  "why_it_matters": "When consuming CLI listings in repository maintenance scripts, request JSON or ID-only output from a supported listing command.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.4.0",
    "https://github.com/huggingface/huggingface_hub/pull/3735",
    "https://github.com/huggingface/huggingface_hub/blob/v1.4.0/docs/source/en/package_reference/cli.md"
  ],
  "rank": 0.96046,
  "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-cd28f29f91e5b3a2-4:gate",
    "evidence_hash": "e1638677dc007e48aa1c9f9e2c9e8d4539f1f50b00365f579b50c3056facffe3"
  },
  "review": {
    "draft_hash": "527a79d981a1f24f916cb30f71fd407ee03a817e2126bb8cf68a3e292877eee9",
    "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.83 (>= 0.6 needed)."
  }
}
