npx wrangler auth token

Category: Cloudflare

npx wrangler auth token

Print the current Cloudflare auth token

Prints whichever credential wrangler resolves first: the CLOUDFLARE_API_TOKEN environment variable, an API key and email pair, or the OAuth token from `wrangler login`. Useful for feeding other tools and scripts. Add `--json` to also get the token type and to retrieve API key credentials.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.