npx wrangler login

Category: Cloudflare

npx wrangler login

Authenticate wrangler with your Cloudflare account

Opens your browser for OAuth and stores the token locally so wrangler can act as you. Run this once per machine before deploying or managing resources. For headless or CI environments, skip it and export CLOUDFLARE_API_TOKEN instead. Pair with `npx wrangler whoami` to confirm the session works.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.