{
  "slug": "wrangler-auth-token-retrieves-configured-credentials-5121d6f66092",
  "title": "wrangler auth token retrieves configured credentials",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-07T11:48:07.000Z",
  "announced_at": "2026-01-07T11:48:07.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a script needs Wrangler’s configured credentials, run `wrangler auth token`; add `--json` for structured output with token type, including API key/email credentials.",
    "examples": [
      "wrangler auth token",
      "wrangler auth token --json"
    ],
    "gotchas": [
      "Version: 4.57.0",
      "--json: Returns JSON with token type; required to retrieve API key/email credentials.",
      "Prerequisite: An authentication method must be available: `CLOUDFLARE_API_TOKEN`, `CLOUDFLARE_API_KEY` plus `CLOUDFLARE_EMAIL` (with `--json`), or an OAuth token from `wrangler login`.",
      "Returns whichever authentication method is currently configured."
    ]
  },
  "why_it_matters": "When a script needs Wrangler’s currently configured authentication credential, retrieve it for the integration.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.57.0",
    "https://developers.cloudflare.com/workers/wrangler/commands/general/"
  ],
  "rank": 0.96029,
  "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-400cc3dbe35a89c2-0:gate",
    "evidence_hash": "b42840c69553dfd18d4e4f957a940bdd0b93354cea55098d18a7b23b1ea53e86"
  },
  "review": {
    "draft_hash": "ae08ae2f384c5bb483ee89da05409477039b63a0784efb376d71539a9f347882",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.79 (>= 0.6 needed)."
  }
}
