{
  "slug": "hf-spaces-logs-retrieves-space-run-and-build-logs-a31f50937bbc",
  "title": "hf spaces logs retrieves Space run and build logs",
  "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": "When debugging a Space build failure or runtime crash, run `hf spaces logs <space_id>` for available run logs; add `--build` for build logs, `-f` to follow, or `-n <count>` to limit output to the last lines.",
    "examples": [
      "hf spaces logs username/my-space",
      "hf spaces logs username/my-space --build",
      "hf spaces logs -f username/my-space\nhf spaces logs -n 50 username/my-space"
    ],
    "gotchas": [
      "Version: v1.11.0",
      "SPACE_ID (required): Space ID, such as `username/repo-name`.",
      "--build: Fetch container build logs instead of run logs.",
      "-f, --follow: Stream log output until the server closes the stream; without it, print currently available logs.",
      "-n, --tail INTEGER: Number of lines to show from the end of the logs."
    ]
  },
  "why_it_matters": "Debug a Space that fails to build or crashes at runtime.",
  "before": "Open the browser to retrieve Space logs.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.11.0",
    "https://huggingface.co/docs/huggingface_hub/en/package_reference/cli"
  ],
  "rank": 0.98037,
  "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-1:gate",
    "evidence_hash": "f2303c219ad3347777096f587023f4458390ba61d10bcd955e485c9a490bd34e"
  },
  "review": {
    "draft_hash": "660ed6c6b70d15106b0b73dfc71eb1a062d57619ffc2ec294e830e617c528557",
    "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.98 >= 0.9; 2 needed) and Jev gave 0.85 (>= 0.6 needed)."
  }
}
