{
  "slug": "wrangler-preview-base-config-secret-commands-manage-shared-preview-secrets-dd8b06cee6f9",
  "title": "wrangler preview base-config secret commands manage shared Preview secrets",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-11T19:22:44.000Z",
  "announced_at": "2026-08-11T19:22:44.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When setting shared defaults for all of a Worker’s Previews, use `wrangler preview base-config secret` to put, delete, list, or bulk-manage secrets in the Preview base config. Use `list` to inspect configured secrets; the release note says values are masked.",
    "examples": [
      "npx wrangler preview base-config secret put <KEY>",
      "npx wrangler preview base-config secret list [--worker-name <WORKER>] [--json]",
      "npx wrangler preview base-config secret bulk <FILE>"
    ],
    "gotchas": [
      "Version: 4.121.0",
      "<KEY> (required): Secret name accessible in the Worker; required by put and delete.",
      "[FILE]: File of key-value pairs to upload, in JSON or .env format; bulk can omit it and read from stdin only where the command docs say so. JSON null deletion is stated in the release note.",
      "--worker-name <WORKER>: Worker to target; defaults to the name in the local Wrangler config.",
      "--skip-confirmation: Skip the confirmation prompt for delete.",
      "--json: Return list output as JSON; default is false."
    ]
  },
  "why_it_matters": "Set or inspect shared secret defaults for all Previews of a Worker.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.121.0",
    "https://developers.cloudflare.com/workers/wrangler/commands/workers/"
  ],
  "rank": 0.97024,
  "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": "augsep-20261008",
    "verdict_id": "augsep-20261008:augsep-20261008-de8613c3fdbe5196-0:gate",
    "evidence_hash": "19d7333362241e7e9588555c79103d78c19c31e133feb5da2160d9bbc5d59539"
  },
  "review": {
    "draft_hash": "1f92b2999a5fc826fbf02e310f77c6af860cea4fe4299373569d28daa1c5d692",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "augsep-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.80 (>= 0.6 needed)."
  }
}
