{
  "slug": "hf-spaces-templates-can-create-spaces-from-templates-3a99aa03efeb",
  "title": "hf spaces templates can create Spaces from templates",
  "tools": [
    "hf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-09T13:50:40.000Z",
  "announced_at": "2026-07-09T13:50:40.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating a Space from an official Hub template, list templates with `hf spaces templates`, then create the Space with `hf repos create <repo_id> --type space --template <template>`. A template recommended as private defaults to private unless you choose a visibility.",
    "examples": [
      "hf spaces templates",
      "hf repos create <repo_id> --type space --template <template>"
    ],
    "gotchas": [
      "Version: v1.23.0",
      "REPO_ID (required): New repository ID; for example, `<owner>/<name>`.",
      "--type space (required): Sets the repository type to Space.",
      "--template TEXT (required): Official template repo ID or short name; Spaces only.",
      "--private / --no-private: Choose private or non-private creation. The docs do not state these options are mutually exclusive.",
      "--public: Choose public creation; ignored if the repository already exists.",
      "--token TEXT: User Access Token for authentication.",
      "Prerequisite: You can manage repositories you own or repositories in organizations where you have write permission.",
      "Templates come from the official Hub template set.",
      "Templates recommended as private, such as JupyterLab, are created privately by default unless visibility is explicitly chosen.",
      "Docs conflict: Newer docs say `space_sdk` is still required for the SDK API, while the v1.23.0 release note says the SDK is inferred from the template. This concerns the SDK API; it does not establish a CLI conflict."
    ]
  },
  "why_it_matters": "Create a new Space in the repository from an official Hub template.",
  "sources": [
    "https://github.com/huggingface/huggingface_hub/releases/tag/v1.23.0",
    "https://huggingface.co/docs/huggingface_hub/v1.29.0/en/package_reference/cli",
    "https://huggingface.co/docs/huggingface_hub/main/en/guides/repository"
  ],
  "rank": 0.98038,
  "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-a51b74e9796aa594-0:gate",
    "evidence_hash": "6231bbc7aa2fe0485cb395d5ea35288d21d205fb8dfd8299a7414e7136767076"
  },
  "review": {
    "draft_hash": "deda5c20f7eb950d8feff31082b78cc5614d89451567592b6ad5cb2053487988",
    "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.79 (>= 0.6 needed)."
  }
}
