npx wrangler secret bulk secrets.json

Category: Cloudflare

npx wrangler secret bulk secrets.json

Set or delete many secrets in one request

Reads a JSON file like {"API_KEY":"abc","WEBHOOK_URL":"https://x"} and writes up to 100 secrets in a single call. A null value deletes that key. An .env file with KEY=VALUE lines also works, but deletion is not supported from .env. Without a file argument it reads stdin.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.