{
  "slug": "netlify-cli-deploy-sets-branch-as-alias-256b08d06fe6",
  "title": "Netlify CLI deploy sets branch as alias",
  "tools": [
    "netlify"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-27T18:31:07.000Z",
  "announced_at": "2026-03-27T18:31:07.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When deploying a repository branch with Netlify CLI v24.8.0, pass the branch name with `--alias`; the CLI uses that alias as the deploy branch value. Note the docs warn against alias values that match deployed branch names.",
    "examples": [
      "netlify deploy --alias=<branch>",
      "netlify deploy --alias custom-alias --context deploy-preview"
    ],
    "gotchas": [
      "Version: 24.8.0",
      "--alias <string> (required): Alias for the deployment, used at the beginning of the deploy subdomain; the v24.8.0 change also uses the alias as the branch value for the deploy request and build.",
      "--context <string>: Deploy context for environment variables read during the build; documented values include `production`, `deploy-preview`, `branch-deploy`, `dev`, or `branch:<branch>`.",
      "Docs conflict: The v24.8.0 source confirms `--alias` is used as the deploy branch value, but the v24.8.0 CLI reference says avoid an alias matching a deployed branch and that `--alias` does not create a branch deploy."
    ]
  },
  "why_it_matters": "Deploy a repository branch by using it as the deploy alias.",
  "sources": [
    "https://github.com/netlify/cli/releases/tag/v24.8.0",
    "https://github.com/netlify/cli/blob/v24.8.0/docs/commands/deploy.md",
    "https://github.com/netlify/cli/commit/c08644e38c41d568b980883c337f4735945e1cd6"
  ],
  "rank": 0.91036,
  "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": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-33dbbb17152df3c5-0:gate",
    "evidence_hash": "a2eacc3f34474b28cda714980ef77bd7809c7a54beb1dcc6a38bd40f4c907624"
  },
  "review": {
    "draft_hash": "3d5c0dd788790f85f1aa46dfea111238ce770162d3904f63b55bb9a5cc149eba",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.65 (>= 0.6 needed)."
  }
}
