{
  "slug": "hf-cli-uses-format-and-mode-aware-confirmations-116ec8e5e1db",
  "title": "hf CLI uses --format and mode-aware confirmations",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-16T12:16:19.000Z",
  "announced_at": "2026-04-16T12:16:19.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "For migrated command groups, use `--format json` or `--format quiet` when scripts need machine-readable or minimal output; omit it for automatic mode selection. For confirmations, pass `--yes` in agent, JSON, or quiet mode; human mode prompts.",
    "examples": [
      "hf cache ls --format json",
      "hf cache ls --format quiet",
      "hf cache rm <repo_id> --yes"
    ],
    "gotchas": [
      "Version: v1.11.0",
      "--format <value>: Select output format; documented values are auto, human, agent, json, and quiet. `auto` is the default.",
      "--yes: Skip the confirmation prompt for `hf cache rm`. The v1.11.0 release note says agent, JSON, and quiet modes require it for confirmation prompts.",
      "<repo_id> (required): One or more cache targets may be repository IDs, Hub URIs, or revision hashes.",
      "Prerequisite: The `hf` CLI is shipped with `huggingface_hub`; official docs also provide standalone installation instructions.",
      "`jobs`, `buckets`, and `auth login/logout` are scheduled to follow in a future release; the spans do not state that they have migrated.",
      "Docs conflict: The v1.11.0 release note says `--yes` is required for confirmation prompts in agent, JSON, or quiet modes; the current CLI reference describes `--yes` as skipping the prompt but does not state that mode-specific requirement. Current docs may describe a later CLI version."
    ]
  },
  "why_it_matters": "Run hf CLI commands in scripts that need structured or minimal output and may delete repositories or cache entries.",
  "before": "Use the old `--quiet` flags on migrated commands; confirmation prompts were not described as mode-aware.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.11.0",
    "https://github.com/huggingface/huggingface_hub/blob/main/docs/source/en/package_reference/cli.md",
    "https://huggingface.co/docs/huggingface_hub/main/guides/cli"
  ],
  "rank": 0.9506,
  "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-25f6591b2baf7d10-2:gate",
    "evidence_hash": "f2303c219ad3347777096f587023f4458390ba61d10bcd955e485c9a490bd34e"
  },
  "review": {
    "draft_hash": "275d95428de02df217295bba9f2c848d90dd86317f9b0a645ff19999281ba282",
    "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.95 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
