Workers - Log in to Wrangler without a local callback server
From the publisher
wrangler login now supports the OAuth 2.0 Device Authorization Grant ↗︎. Pass --device to authenticate without starting a temporary callback server on localhost:8976: npx wrangler login --device Wrangler prints a verification URL and a short user code, opens the URL in your default browser with the code already filled in, and polls Cloudflare for an access token while you approve the request: ⛅️ wrangler 4.119.0 ──────────────────── Attempting to login via OAuth Device Authorization Grant... To authorize Wrangler, please visit: https://dash.cloudflare.com/oauth2/device and enter the code: jPqK6Qvs You have 5 minutes to approve this request. Opening a link in your default browser: https://dash.cloudflare.com/oauth2/device?user_code=jPqK6Qvs Successfully logged in.
Source Cloudflare DevelopersCC BY 4.0 · Publisher excerpt shortened and converted to plain text. Original source license applies.
Read full article

