cloudflare-dns

Manage Cloudflare DNS records via the Cloudflare API using curl commands.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/lsongdev/skills --skill cloudflare-dns-lsongdev
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: cloudflare-dns
Source: https://github.com/lsongdev/skills/tree/main/cloudflare-dns
Command: npx skills add https://github.com/lsongdev/skills --skill cloudflare-dns-lsongdev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Managing DNS records through the Cloudflare dashboard is slow and hard to automate. This Skill lets you list, create, update, and delete Cloudflare DNS records directly through the Cloudflare API from the command line. ## Core Features & Use Cases - Full DNS Record CRUD: List, add, update, and delete A, AAAA, CNAME, MX, and TXT records via the Cloudflare v4 API. - Zone Management: Query zone lists and resolve domain names to zone IDs automatically. - Upsert & Batch Operations: Create-or-update records idempotently and batch-delete records sharing the same name. - Use Case: You need to point a new subdomain to a server IP and enable the Cloudflare proxy. The Skill resolves the zone ID, creates the A record with proxied: true, and lists the zone records to confirm the change. ## Quick Start Ask the AI to add an A record for a subdomain pointing to your server IP in your Cloudflare zone, with your CF_API_TOKEN environment variable set.

Frequently Asked Questions about cloudflare-dns

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

FAQPage Schema
How do I add a DNS record with the Cloudflare API?▼

Send a POST request to /zones/<zone_id>/dns_records with the record type, name, content, and ttl in the JSON body, authenticated with a Bearer API token. Set ttl to 1 for automatic TTL and proxied to true for A, AAAA, or CNAME records.

How do I update an existing Cloudflare DNS record?▼

First look up the record ID by querying dns_records with the record name, then send a PATCH request to /zones/<zone_id>/dns_records/<record_id> with the new content or proxied value in the JSON body.

What permissions does a Cloudflare API token need for DNS management?▼

The API token needs the Zone.DNS:Edit permission, created at the Cloudflare dashboard API tokens page. Set it as the CF_API_TOKEN environment variable before running any commands.

Which Cloudflare record types support the proxied option?▼

Only A, AAAA, and CNAME records support proxied: true, which enables the Cloudflare orange-cloud proxy. MX and TXT records cannot be proxied.

How do I delete multiple Cloudflare DNS records with the same name?▼

Query dns_records filtered by name to collect all matching record IDs with jq, then loop over the IDs and send a DELETE request for each one. Deletions are irreversible, so confirm before proceeding.