{
  "slug": "vercel-flags-rules-cli-manages-conditional-feature-flag-rules-aa9549612432",
  "title": "vercel flags rules CLI manages conditional feature flag rules",
  "tools": [
    "vercel"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-09T18:17:42.000Z",
  "announced_at": "2026-07-09T18:17:42.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When managing conditional rules for a feature in an environment, use `vercel flags rules` to list, add, update, move, or remove rules. Pass the environment and the rule’s conditions, variant or weights, and position as needed.",
    "examples": [
      "vercel flags rules ls <feature> --environment production --json",
      "vercel flags rules add <feature> --environment production --condition '<entity>.<attribute>:<operator>:<value>' --variant <variant>",
      "vercel flags rules add <feature> --environment production --condition '<entity>.<attribute>:<operator>:<value>' --by <entity>.<attribute> --weight <variant>=<weight> --weight <variant>=<weight> --position <position>"
    ],
    "gotchas": [
      "Version: 55.0.0",
      "<feature> (required): Feature flag slug argument; examples use `my-feature`.",
      "<rule_id> (required): Rule identifier argument used by update, move, and remove; example: `rule_123`.",
      "--environment (required): Target environment; release examples use `production`.",
      "--json: For `ls`, request JSON output containing the full rule set.",
      "--condition: Condition token in `<entity>.<attribute>:<operator>:<value>` form; repeat to add multiple conditions. Each rule needs at least one filter.",
      "--variant: Variant ID to serve for a fixed rule outcome.",
      "--by: Entity attribute used for weighted bucketing, e.g. `user.userId`.",
      "--weight: Variant weight in `<variant>=<weight>` form; release example repeats this option for variants `off` and `on`.",
      "--position: Rule position for add or move; examples use `1`.",
      "Prerequisite: Authenticate to Vercel before accessing resources or performing administrative tasks; use `vercel login` in a terminal or a token in CI.",
      "Prerequisite: Targeting rules require entities to be configured first; referenced variant IDs must exist in the flag’s variants.",
      "Prerequisite: The CLI changelog says to update to the latest Vercel CLI version to use rule management."
    ]
  },
  "why_it_matters": "Add or adjust conditional feature flag rules for an application's production environment.",
  "sources": [
    "https://github.com/vercel/vercel/releases/tag/vercel%4055.0.0",
    "https://vercel.com/changelog/manage-vercel-flags-targeting-rules-from-the-cli",
    "https://vercel.com/docs/cli",
    "https://vercel.com/docs/flags/vercel-flags/dashboard/feature-flag"
  ],
  "rank": 0.98045,
  "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": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-2469f5aeef7006ad-4:gate",
    "evidence_hash": "ddf693a4af6748affb97cec548645044518407accdbfd723c075d3f92707c791"
  },
  "review": {
    "draft_hash": "a3c63b2bfde9f1e3e6fc8f9d2003b1a8764237a8568e6030ee4aef2618bf53e6",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.98 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
