{
  "slug": "hf-spaces-pause-restart-and-update-settings-from-the-cli-6909ef461bf6",
  "title": "hf spaces pause, restart, and update settings from the CLI",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-30T11:48:16.000Z",
  "announced_at": "2026-04-30T11:48:16.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When maintaining a Space, pause or restart it with `hf spaces pause` or `hf spaces restart`; use `--factory-reboot` for a clean rebuild. Update idle sleep time or hardware with `hf spaces settings`; `--sleep-time` requires upgraded hardware.",
    "examples": [
      "hf spaces pause <owner>/<space>",
      "hf spaces restart <owner>/<space> [--factory-reboot]",
      "hf spaces settings <owner>/<space> [--sleep-time <seconds>] [--hardware <flavor>]"
    ],
    "gotchas": [
      "Version: v1.13.0",
      "SPACE_ID (required): Space ID, such as `<owner>/<space>`.",
      "--factory-reboot: Rebuild the Space from scratch without using the build cache.",
      "--sleep-time INTEGER: Idle time in seconds before the Space sleeps; `-1` means never. Only available on upgraded hardware.",
      "--hardware FLAVOR: Set the Space hardware flavor; run `hf spaces hardware` to list options. The release note shows it used together with `--sleep-time`.",
      "-y: Skip the pause or restart confirmation prompt.",
      "Prerequisite: `--sleep-time` is only available on upgraded hardware.",
      "`--sleep-time` is only available on upgraded hardware.",
      "Pausing or restarting tears down the Space container, so data on its ephemeral filesystem is lost. Mount a Volume or bucket with `hf spaces volumes set` to persist data across restarts.",
      "Docs conflict: The v1.13.0 CLI reference documents `--factory-reboot`, `--sleep-time`, and `--hardware`, but does not list `-y` under pause or restart options; the v1.13.0 release note says `-y` skips their confirmation prompt."
    ]
  },
  "why_it_matters": "When maintaining a Space used in a coding workflow, pause it, restart it, or update its sleep time or hardware from the CLI.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.13.0",
    "https://github.com/huggingface/huggingface_hub/pull/4155",
    "https://github.com/huggingface/huggingface_hub/blob/v1.13.0/docs/source/en/package_reference/cli.md"
  ],
  "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-bb06c8ee38e25564-3:gate",
    "evidence_hash": "8f11d99c2b64c04df88abf2e4573c6956cf9e268985d5a90173daf68c79513ac"
  },
  "review": {
    "draft_hash": "1ec2bd131379d7175d10b017ac09516d76848456429a3c89efc1913b952309fc",
    "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.78 (>= 0.6 needed)."
  }
}
