Workers - Retrieve your authentication token with `wrangler auth token`
6mo ago
Source
CloudflareWorkers - Retrieve your authentication token with `wrangler auth token`cloudflare.comWrangler now includes a new wrangler auth token command that retrieves your current authentication token or credentials for use with other tools and scripts. wrangler auth token The command returns whichever authentication method is currently configured, in priority order: API token from CLOUDFLARE_API_TOKEN , or OAuth token from wrangler login (automatically refreshed if expired). Use the --json flag to get structured output including the token type: wrangler auth token --json The JSON output includes the authentication type: // API token { " type " : "api_token" , " token " : "..." } // OAuth token { " type " : "oauth" , " token " : "..." } // API key/email (only available with --json) { " type " : "api_key" , " key " : "..." , " email " : "..." } API key/email credentials from CLOUDFLARE_API_KEY and CLOUDFLARE_EMAIL require the --json flag since this method uses two values instead of a single token.
You might also wanna read
Cloudflare expands AI bot management tools with granular traffic controls for all customers
Cloudflare is celebrating the second "Content Independence Day" by expanding AI traffic management options for all website owners. Building
Workers - Simpler runtime types with @cloudflare/workers-types v5
Cloudflare·1d ago
AI Search - Manage AI Search sync jobs with Wrangler CLI
Cloudflare·2d ago
Workers - Work across multiple accounts with Wrangler auth profiles
Cloudflare·2d ago
Cache - Cache multiple versions of a URL with Vary
Cloudflare·2d ago
Cloudflare One - Hostname routing for Cloudflare Mesh
Cloudflare·2d ago

Comments
Sign in to join the conversation.
No comments yet. Be the first.