{
  "slug": "wrangler-flagship-manages-flagship-apps-and-flags-df9829b61730",
  "title": "wrangler flagship manages Flagship apps and flags",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-02T16:33:13.000Z",
  "announced_at": "2026-07-02T16:33:13.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "If your Wrangler workflow needs to manage Flagship apps or feature flags, use `wrangler flagship apps` for apps and `wrangler flagship flags <APP-ID>` for flags; add the documented subcommand and arguments for the action, such as creating, inspecting, evaluating, rolling out, or deleting.",
    "examples": [
      "wrangler flagship apps create <NAME>",
      "wrangler flagship flags create <APP_ID> <KEY> --variation <NAME>=<VALUE> --default <NAME> --type <boolean|string|number|json>",
      "wrangler flagship flags evaluate <APP_ID> <KEY> --context <NAME>=<VALUE> --targeting-key <KEY>"
    ],
    "gotchas": [
      "Version: 4.107.0",
      "<NAME> (required): App name.",
      "<APP_ID> (required): App ID; first argument to flag commands.",
      "<KEY> (required): Flag key.",
      "--variation <name>=<value> (-V): Add a variation; repeatable. All variations on a flag must resolve to one value type.",
      "--default <NAME>: Choose the default variation.",
      "--type <TYPE>: Flag value type: boolean, string, number, or json; inferred if omitted.",
      "--context <NAME>=<VALUE>: Evaluation context attribute; repeatable. Values are sent as strings.",
      "--targeting-key <KEY>: Stable bucketing key for percentage rollouts.",
      "Prerequisite: Wrangler v4.107.0 or later.",
      "Prerequisite: Authenticate with `wrangler login` or `CLOUDFLARE_API_TOKEN` with Flagship permissions. Reads require `flagship:read`; writes require `flagship:write`. Most writes that update existing flags also need read permission."
    ]
  },
  "why_it_matters": "Manage Flagship apps and feature flags from a coding workflow that uses Wrangler.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.107.0",
    "https://developers.cloudflare.com/workers/wrangler/commands/flagship/",
    "https://developers.cloudflare.com/flagship/reference/wrangler-commands/"
  ],
  "rank": 0.94031,
  "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": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-8cc335ff8d098b7a-2:gate",
    "evidence_hash": "600392b25956935d6389be815d09ee092c4b7ce2214dda19e3074608718c16ec"
  },
  "review": {
    "draft_hash": "612b867dd805231a6c3639063027f7f0e420cb6b28a44fc09158c37c80c95f6c",
    "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.94 >= 0.9; 2 needed) and Jev gave 0.71 (>= 0.6 needed)."
  }
}
