Use Cloudflare through Corsair: one client, typed API calls against Cloudflare API v4, and optional local DB sync for zones, DNS, Workers, and rulesets. What you get:Documentation Index
Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
Use this file to discover all available pages before exploring further.
- 24 typed API operations
- Local search via
corsair.cloudflare.db.*(synced on API calls when a database is configured)
Setup
Get credentials
Follow Get Credentials if you need help getting keys.
Store credentials
- Solo
- Multi-Tenant
api_key=).Authentication
Each tab shows how to register the plugin for that authentication method. The defaultauthType from the plugin does not need to appear in the factory call.
- API Key (Default)
corsair.ts
pnpm corsair setup --plugin=cloudflare (see Get Credentials for field names).More: API KeyExample API calls
Read-style (read):dns.get
dns.create
pnpm corsair list --plugin=cloudflare and pnpm corsair schema <path> locally to inspect schemas.
Hooks
Usehooks on API calls to add logging, approvals, or side effects. See Hooks.
Reference
| Topic | Link |
|---|---|
| API | API |
| Credentials | Get credentials |