Bulk-upload secrets from a file
cloudflare pages
// what it does
Uploads many secrets at once from a flat JSON object of `{ "KEY": "value" }`. Handy when bootstrapping a new project or environment instead of running `secret put` one key at a time.
// shell
$ wrangler pages secret bulk ./secrets.json --project-name my-app// gotcha
Existing keys are overwritten without confirmation, and the file sits in plaintext on disk — keep it out of git and delete it afterward.