Cloudflare
Cloudflare management - zones, DNS records, WAF/firewall rules, Workers, and cache/CDN
2026.07.18.2
Added: An upgrades array entry (no-op) to cache.ts, dns.ts, waf.ts, worker.ts, zone.ts for proper typeVersion tracking on existing instances. No schema or behavior changes.
2026.07.18.1
Changed: Renamed the manifest tags: field to labels: — the schema's
actual field name. No runtime or install behavior change.
2026.07.13.1
Changed: Pinned the zod import specifier to npm:zod@4.4.3 across all
model files (zone, worker, waf, dns, cache), matching the version used
by the rest of the repo. Previously these files pinned 4.3.6. No API or
runtime behavior changes — 4.4.3 is a backward-compatible patch.
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Zone read/write permissions |
| Argument | Type | Description |
|---|---|---|
| status? | enum | Filter by zone status |
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| setting | string | Setting name (e.g., 'ssl', 'cache_level', 'minify') |
| value | unknown | New value for the setting |
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
Resources
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with DNS read/write permissions |
| zoneId | string | Zone ID to manage DNS records for |
| Argument | Type | Description |
|---|---|---|
| type? | enum | Filter by record type |
| name? | string | Filter by record name (exact match) |
| Argument | Type | Description |
|---|---|---|
| recordId | string | DNS record ID |
| Argument | Type | Description |
|---|---|---|
| type | enum | Record type |
| name | string | Record name (e.g., 'www' or '@' for root) |
| content | string | Record content (IP address, hostname, etc.) |
| ttl | number | TTL in seconds (1 = auto) |
| proxied | boolean | Enable Cloudflare proxy (orange cloud) |
| priority? | number | Priority (required for MX records) |
| comment? | string | Comment for the record |
| Argument | Type | Description |
|---|---|---|
| recordId | string | DNS record ID to update |
| type | enum | Record type |
| name | string | Record name |
| content | string | Record content |
| ttl | number | TTL in seconds (1 = auto) |
| proxied | boolean | Enable Cloudflare proxy |
| priority? | number | Priority (for MX records) |
| comment? | string | Comment for the record |
| Argument | Type | Description |
|---|---|---|
| recordId | string | DNS record ID to delete |
Resources
Files
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Firewall read/write permissions |
| zoneId | string | Zone ID to manage firewall rules for |
| Argument | Type | Description |
|---|---|---|
| expression | string | Firewall expression (e.g., 'ip.src eq 1.2.3.4' or 'http.request.uri.path contains \ |
| action | enum | Action to take when rule matches |
| description? | string | Human-readable description |
| priority? | number | Rule priority (lower = higher priority) |
| paused | boolean | Create rule in paused state |
| Argument | Type | Description |
|---|---|---|
| ruleId | string | Firewall rule ID to delete |
| Argument | Type | Description |
|---|---|---|
| ruleId | string | Firewall rule ID |
| paused | boolean | Set to true to pause, false to enable |
| Argument | Type | Description |
|---|---|---|
| limit | number | Maximum number of events to fetch |
Resources
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Workers read/write permissions |
| accountId | string | Cloudflare account ID |
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name |
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name |
| script | string | JavaScript/TypeScript source code |
| bindings? | array | Environment bindings |
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name to delete |
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| pattern | string | Route pattern (e.g., 'example.com/*') |
| scriptName | string | Worker script name to execute |
| Argument | Type | Description |
|---|---|---|
| zoneId | string | Zone ID |
| routeId | string | Route ID to delete |
| Argument | Type | Description |
|---|---|---|
| scriptName | string | Worker script name |
| enabled | boolean | Enable or disable workers.dev subdomain |
Resources
Files
Global Arguments
| Argument | Type | Description |
|---|---|---|
| apiToken | string | Cloudflare API token with Cache Purge permissions |
| zoneId | string | Zone ID to manage cache for |
| Argument | Type | Description |
|---|---|---|
| urls | array | List of URLs to purge (max 30) |
| Argument | Type | Description |
|---|---|---|
| tags | array | List of Cache-Tag values to purge |
| Argument | Type | Description |
|---|---|---|
| prefixes | array | List of URL prefixes to purge |
| Argument | Type | Description |
|---|---|---|
| level | enum | Cache level: bypass (no cache), basic, simplified, or aggressive |
| Argument | Type | Description |
|---|---|---|
| enabled | boolean | Enable or disable development mode |
| Argument | Type | Description |
|---|---|---|
| since | string | Start time (minutes ago, e.g., '-1440' for last 24h) |
| until | string | End time (minutes ago, '0' for now) |
Resources
2026.07.18.1
Changed: Renamed the manifest tags: field to labels: — the schema's
actual field name. No runtime or install behavior change.
2026.07.13.1
Changed: Pinned the zod import specifier to npm:zod@4.4.3 across all
model files (zone, worker, waf, dns, cache), matching the version used
by the rest of the repo. Previously these files pinned 4.3.6. No API or
runtime behavior changes — 4.4.3 is a backward-compatible patch.
updated labels
2026.07.13.1
Changed: Pinned the zod import specifier to npm:zod@4.4.3 across all
model files (zone, worker, waf, dns, cache), matching the version used
by the rest of the repo. Previously these files pinned 4.3.6. No API or
runtime behavior changes — 4.4.3 is a backward-compatible patch.
2026.06.27.1
Fixed: Removed stale "zod": "npm:zod@4.3.6" alias from deno.json imports
map. All source files already used direct npm:zod@4.3.6 specifiers; the alias
was dead. The scorer's deno doc --lint flagged it as a mismatch, causing the
extension to fail scoring (Warning Import "zod" not a dependency).
Upgrade note: If you use @webframp/cloudflare-audit, pull both extensions
together — cloudflare-audit@2026.06.27.1 requires cloudflare@2026.06.27.1.
2026.06.26.1
Fixed: get_analytics (cache model) and get_security_events (waf model) now use
parameterized GraphQL variables. Previously these methods failed silently due to a query
syntax error — they returned empty/zero data instead of actual analytics. After upgrading,
expect to see real cache hit-rate and security event data where there was none before.
Added: All paginated methods (zone list, DNS list, WAF rules, WAF packages, worker scripts, worker routes) now log a WARNING when results are truncated at the 1000-item pagination cap. Previously truncation was silent.
Upgrade note: If you use @webframp/cloudflare-audit, pull both extensions together —
cloudflare-audit@2026.06.26.1 requires cloudflare@2026.06.26.1.
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned