{
  "slug": "vercel-flags-set-changes-served-variant-in-an-environment-ee131cf58fd9",
  "title": "vercel flags set changes served variant in an environment",
  "tools": [
    "vercel"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-03-11T15:14:34.840Z",
  "announced_at": "2026-03-11T15:14:34.840Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When changing the variant served by a flag in an environment, run `vercel flags set` with the flag, environment, and variant. Select the variant by ID or value; boolean `enable`/`disable` shortcuts apply only to boolean flags.",
    "examples": [
      "vercel flags set <flag> --environment <production|preview|development> --variant <variant-id-or-value>",
      "vercel flags set <flag> --environment <production|preview|development> --variant <variant-id-or-value> --message \"<reason>\""
    ],
    "gotchas": [
      "Version: 50.31.2",
      "<flag> (required): Feature flag slug or ID.",
      "--environment, -e (required): Target environment: production, preview, or development.",
      "--variant, -v (required): Selects a variant by ID or value; labels are not selectors.",
      "--message: Optional revision message.",
      "Prerequisite: Vercel CLI must be installed and authenticated to access or administer Vercel resources.",
      "Explicit variant selection matches by ID or value only."
    ]
  },
  "why_it_matters": "Change which feature flag variant is served in a Vercel environment.",
  "sources": [
    "https://github.com/vercel/vercel/blob/main/packages/cli/CHANGELOG.md#50312",
    "https://vercel.com/docs/cli/flags",
    "https://vercel.com/docs/cli"
  ],
  "rank": 0.94033,
  "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": "recover-20261008",
    "verdict_id": "recover-20261008:recover-20261008-5efc58742241faad-2:gate",
    "evidence_hash": "6ac8dc172c63a67258a159389b35bdfcffc1a290950e6cfd6662d1701364a650"
  },
  "review": {
    "draft_hash": "9c452d73dfb1319e072db2b056f8db4dc9a6caeb0a3c6af493e5a40f53561d3d",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "recover-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.94 >= 0.9; 2 needed) and Jev gave 0.67 (>= 0.6 needed)."
  }
}
