Wrangler 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 tokenThe 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 --jsonThe 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.
Source: Cloudflare
Latest Posts
- AWS Management Console now displays Account Name on the Navigation bar for easier account identification

- Amazon Connect launches an appeals workflow for agent performance evaluations

- AWS Lake Formation is now available in Asia Pacific (New Zealand) Region

- Microsoft Teams: Teams Live Events is retiring [MC1226495]
![Microsoft Teams: Teams Live Events is retiring [MC1226495] 5 pexels pixabay 220769](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==)




![Microsoft Teams: Teams Live Events is retiring [MC1226495] 5 pexels pixabay 220769](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-pixabay-220769-150x150.webp)
