Cloudflare Command Guide (si cloudflare)
si cloudflare is the Cloudflare bridge for account context, operational workflows, and raw API access.
Related:
Auth policy:
- API token only.
- Credentials should be injected from
si vault(or compatible env keys). - Settings should store env references/pointers, not raw secrets.
Credential Keys (Vault-Compatible)
Per account alias<ACCOUNT> (uppercase slug):
CLOUDFLARE_<ACCOUNT>_API_TOKENCLOUDFLARE_<ACCOUNT>_ACCOUNT_IDCLOUDFLARE_<ACCOUNT>_DEFAULT_ZONE_IDCLOUDFLARE_<ACCOUNT>_DEFAULT_ZONE_NAMECLOUDFLARE_<ACCOUNT>_PROD_ZONE_IDCLOUDFLARE_<ACCOUNT>_STAGING_ZONE_IDCLOUDFLARE_<ACCOUNT>_DEV_ZONE_ID
CLOUDFLARE_API_TOKENCLOUDFLARE_ACCOUNT_IDCLOUDFLARE_ZONE_IDCLOUDFLARE_API_BASE_URLCLOUDFLARE_DEFAULT_ACCOUNTCLOUDFLARE_DEFAULT_ENV
prod,staging,devare the supported context labels.testis intentionally not used as a standalone environment mode.
Context + Auth + Diagnostics
Zone + DNS
TLS + Cache + Security
Workers + Pages
Data Platform
Access + Tunnel + Load Balancer
Email + Tokens
Analytics + Logs + Reports
Raw Escape Hatch
Error Reporting
On failures,si cloudflare surfaces:
- HTTP status
- request id (
CF-Raywhen available) - Cloudflare error code/message
- structured
errorspayload when present - redacted raw body for debugging
