{
  "slug": "wrangler-turnstile-widget-crud-commands-cd46b9720486",
  "title": "wrangler turnstile widget CRUD commands",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-07-09T14:09:25.000Z",
  "announced_at": "2026-07-09T14:09:25.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When configuring or maintaining a repository's Turnstile integration, use Wrangler's widget subcommands to create, list, inspect, update, or delete widgets. For machine-readable output, add `--json`; deleting with JSON also requires `--skip-confirmation` or `-y`.",
    "examples": [
      "wrangler turnstile widget create <name> --domain <domain> --mode managed",
      "wrangler turnstile widget list --json\nwrangler turnstile widget get <sitekey> --json\nwrangler turnstile widget update <sitekey> --name \"Renamed\" --json\nwrangler turnstile widget delete <sitekey> --json --skip-confirmation"
    ],
    "gotchas": [
      "Version: 4.109.0",
      "<name> (required): Widget name.",
      "--domain <domain> (required): Accepted hostname; repeat the flag or provide comma-separated hostnames.",
      "--mode <mode> (required): Widget mode; create example uses `managed`.",
      "<sitekey> (required): Widget identifier for get, update, or delete.",
      "--json: Request machine-readable output; supported by all five subcommands.",
      "--skip-confirmation / -y (required): For delete with `--json`, bypass confirmation so output remains pipeable.",
      "Prerequisite: Wrangler 4.109 or later is required for the existing-widget recovery flow.",
      "Prerequisite: API token authentication uses `Account.Turnstile:Edit`.",
      "`delete --json` requires `--skip-confirmation` or `-y` to keep output pipeable.",
      "`--domain` accepts comma-separated values.",
      "`list` and `update` redact the secret; `get` can retrieve it later.",
      "Existing OAuth sessions need to run `wrangler login` again to obtain the `challenge-widgets.write` scope.",
      "API token users need a token with the `Account.Turnstile:Edit` permission."
    ]
  },
  "why_it_matters": "Manage Turnstile widgets from the CLI while configuring or maintaining a repository's Turnstile integration.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.109.0",
    "https://developers.cloudflare.com/turnstile/spin/"
  ],
  "rank": 0.98032,
  "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-1b03e9c442931c57-2:gate",
    "evidence_hash": "85b88c12a3e981cb494e69ea3752e2f522c395eb0d853716ae4eafd18ca69e19"
  },
  "review": {
    "draft_hash": "060492d2c9741590fc28e1ba4dc7cc3a5e3cf4728dbc148a593b5346fe15246f",
    "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.83 (>= 0.6 needed)."
  }
}
