{
  "slug": "cf-initializes-and-deploys-workers-projects-36a93c761311",
  "title": "cf initializes and deploys Workers projects",
  "tools": [
    "cf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-28T00:00:00.000Z",
  "announced_at": "2026-09-28T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating a Workers project, install `cf` globally and run `cf init <project-dir>`; then use `cf dev`, `cf build`, and `cf deploy` to develop, build, and deploy it. Sign in with `cf auth login` before deploying. [Install and sign in](https://developers.cloudflare.com/cf/get-started/)",
    "examples": [
      "npm install --global cf\ncf auth login\ncf init <project-dir>\ncd <project-dir>\ncf dev\ncf build\ncf deploy"
    ],
    "gotchas": [
      "Availability: Beta; commands, configuration, and Build Output can change before the stable release.",
      "Requires Install globally with `npm install --global cf`, `yarn global add cf`, `pnpm add --global cf`, or `bun add --global cf`.",
      "<project-dir>: Directory for the new project; if omitted, `cf init` prompts for one.",
      "--package-manager <manager>: Select `npm`, `pnpm`, `yarn`, or `bun` for dependency installation; defaults to npm unless cf was run through another package manager.",
      "--no-install: Skip dependency installation; install dependencies before running `cf dev`.",
      "--no-browser: For `cf auth login`, print the sign-in link without opening a browser; useful on remote machines, SSH, or containers.",
      "Prerequisite: Install `cf` globally; the docs show `npm install --global cf`.",
      "Prerequisite: Loading `cloudflare.config.ts` requires Node.js 22.18 or later; set `\"type\": \"module\"` in the project's `package.json`.",
      "Prerequisite: Sign in is not needed until deployment. `cf deploy` resolves credentials and account; authenticate with `cf auth login`.",
      "The typed configuration file is `cloudflare.config.ts`."
    ]
  },
  "why_it_matters": "Create, develop, build, or deploy a Workers project from a repository.",
  "sources": [
    "https://developers.cloudflare.com/changelog/post/2026-09-28-cloudflare-cli-beta/",
    "https://developers.cloudflare.com/cf/get-started/first-worker/",
    "https://developers.cloudflare.com/cf/get-started/",
    "https://developers.cloudflare.com/cf/projects/cloudflare-config/"
  ],
  "rank": 0.95065,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "cf-20261007",
    "verdict_id": "cf-20261007:cf-20261007-d33605e7dd08c1aa-1:gate",
    "evidence_hash": "ff8d26729bd82305e2d06396544ceb24c80875e131ae538718bb20b83ae78c2b"
  },
  "review": {
    "draft_hash": "9023f2e00125a4f2fa938c86f67c54b1cbdeb0db04df4ec9eaceb45caab238f1",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cf-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
