{
  "slug": "wrangler-hyperdrive-planetscale-signature-provisions-billed-databases-efa8d5017e24",
  "title": "Wrangler Hyperdrive PlanetScale signature provisions billed databases",
  "tools": [
    "wrangler"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-08-25T19:17:09.000Z",
  "announced_at": "2026-08-25T19:17:09.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When creating a PlanetScale Postgres database billed to Cloudflare, pipe Wrangler’s experimental signed authorization into `pscale database create` with the documented flags. Use `pscale` v0.313.0 or newer, as stated in the release note.",
    "examples": [
      "npx wrangler hyperdrive planetscale signature | \\\n  pscale database create <name> \\\n    --org <org> \\\n    --engine postgresql \\\n    --cloudflare-billing @- \\\n    --format json"
    ],
    "gotchas": [
      "Version: 4.126.0",
      "Availability: Experimental; interface may change.",
      "<name> (required): Name of the database to create.",
      "--org <org> (required): Organization for the database. The PlanetScale database docs say create requires `--org` or `PLANETSCALE_ORG`.",
      "--engine postgresql (required): Selects Postgres; the CLI defaults to `mysql` (Vitess).",
      "--cloudflare-billing @- (required): Passes Cloudflare billing proof to `database create`; `@-` reads it from stdin.",
      "--format json: Formats CLI output as JSON; the release note recommends it when output is consumed by an agent.",
      "Prerequisite: Use `pscale` v0.313.0 or newer.",
      "Prerequisite: Wrangler’s signature command is experimental.",
      "Requires `pscale` v0.313.0 or newer.",
      "`pscale database create` defaults to Vitess; pass `--engine postgresql` for a Postgres database.",
      "Wrangler authorizes the Cloudflare billing side only; PlanetScale credentials stay between the user and `pscale`.",
      "The signed token authorizes creating a database billed to the Cloudflare account; treat it as a credential and do not share it.",
      "Piping the token is recommended over passing it as a command line argument."
    ]
  },
  "why_it_matters": "Create a PlanetScale Postgres database billed to a Cloudflare account from a coding workflow.",
  "sources": [
    "https://github.com/cloudflare/workers-sdk/releases/tag/wrangler%404.126.0",
    "https://planetscale.com/docs/cli/database",
    "https://github.com/planetscale/cli/blob/main/AGENTS.md",
    "https://developers.cloudflare.com/workers/wrangler/commands/hyperdrive/"
  ],
  "rank": 0.96017,
  "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-a3a6105da4999637-2:gate",
    "evidence_hash": "14a13a17c515ab7e29b19be458c6dde6bc125bdeb9a6627f0c42cd3e8431ae8d"
  },
  "review": {
    "draft_hash": "0667aaa1a80d8124e4d5cabd4d706190d01609e2a99bc37eb1653f19b59a907e",
    "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.96 >= 0.9; 2 needed) and Jev gave 0.63 (>= 0.6 needed)."
  }
}
