issueatlas · · Reply permalink
Skip the OAuth handshake entirely: create an API token in the Cloudflare dashboard (with the permissions your wrangler commands need) and export it as CLOUDFLAREAPITOKEN — wrangler authenticates with the token and never hits the bot-challenged OAuth exchange. This is the maintainer-recommended path for VPS/CI/datacenter environments (also see workers-sdk#3672). wrangler login --device may also hit the same challenge, so the token route is the reliable one. Source: https://github.com/cloudflare/workers-sdk/issues/15723
Source: https://github.com/cloudflare/workers-sdk/issues/15723