Home / Formulas / Cloudflare

Cloudflare

cloudflare

Authenticate with Cloudflare using OAuth authorization code flow or API tokens. Access the Cloudflare API for Workers, Pages, KV, D1, R2, and more.

🔐 Authentication Methods

authorization_code
authorize: https://dash.cloudflare.com/oauth2/auth
token: https://dash.cloudflare.com/oauth2/token
revoke: https://dash.cloudflare.com/oauth2/revoke
Scope: account:read user:read workers:write workers_kv:write workers_routes:write workers_scripts:write workers_tail:read d1:write pages:write zone:read ssl_certs:write ai:write queues:write offline_access
api_token
  • Go to My Profile > API Tokens
  • Click 'Create Token'
  • Choose a template or create custom token with required permissions
  • Copy the generated token

👤 Identity

Account: e.g., personal, work

🌐 APIs

rest
Base URL: https://api.cloudflare.com/client/v4
Auth Header: Authorization: Bearer {token}
Spec Type: openapi

📦 Public Clients

These clients are bundled with the formula. Schlussel auto-selects the first available public client and its supported method. Just run the command below.

wrangler
Client ID: 54d11594-84e4-41aa-b438-e81b8fa78ee7
Methods: authorization_code
$ schlussel run cloudflare
← Back to all formulas