cloudflare-api

Generates curl commands and scripts for bulk Cloudflare REST API operations.

1|Updated Aug 18, 2026
One-click install
npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill cloudflare-api-scsm-unrestrict
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-api
Source: https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent/tree/main/frontend-engineer/skills/cloudflare-api
Command: npx skills add https://github.com/scsm-unrestrict/dsh-frontend-engineer-agent --skill cloudflare-api-scsm-unrestrict

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Wrangler CLI and MCP servers handle single Cloudflare operations well but fall short on bulk DNS updates, fleet-wide zone settings, custom hostnames, email routing, and cross-database D1 queries. This Skill produces direct REST API commands and scripts for those gaps. ## Core Features & Use Cases - Bulk and Fleet Operations: Batch DNS record creation, find-and-replace IP migrations, zone settings applied across dozens of zones, and account-wide resource audits. - Features Wrangler Lacks: Custom hostnames for white-label SaaS domains, email routing rules, WAF and rate-limit rules, bulk redirect rules, and cache purge by tag or prefix. - Developer Platform APIs: D1 cross-database queries and exports, R2 bulk object operations, KV bulk read/write, Vectorize queries, and Queue message injection. - Use Case: Migrating a domain with 50 DNS records? Generate a script that reads records from a CSV, creates them via the API with rate-limit handling, and verifies each call succeeded. ## Quick Start Ask the agent to generate a script that bulk-imports DNS records from a CSV file into a Cloudflare zone using the REST API.

Frequently Asked Questions about cloudflare-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I bulk update DNS records on Cloudflare?

Use the Cloudflare REST API with a script that reads records from a CSV and POSTs each to the zone's dns_records endpoint. Add a short sleep between calls to stay within the 1200 requests per 5 minutes rate limit.

When should I use the Cloudflare API instead of wrangler?

Use wrangler or MCP for single operations like deploying a Worker or creating a D1 database. Use the REST API directly for bulk changes, fleet-wide settings across zones, and features wrangler does not expose such as custom hostnames and email routing.

How do I set up custom hostnames for a SaaS on Cloudflare?

POST to the zone's custom_hostnames endpoint with the client hostname and SSL settings. The client then adds a CNAME pointing to your domain, and you poll the hostname status until verification completes.

Can I query multiple D1 databases in one script?

Yes, the D1 query API endpoint accepts SQL per database ID, so a script can loop over multiple database IDs and aggregate results. Wrangler only targets one database at a time.

What are the Cloudflare API rate limits?

Most endpoints allow 1200 requests per 5 minutes, cache purge allows 1000 calls per day, and zone creation is limited to 5 per minute. Scripts should include sleep intervals or controlled parallelism for sustained operations.