Zone management
List, add, and remove zones with explicit confirmation for destructive commands.
$ cloudns zone list -f json
cloudns-tools gives automation and operators a predictable CLI for ClouDNS zones, records, presets, and backups, with idempotent writes, dry-run previews, and clean JSON output.
# install from GitHub until npm publish
$ npm install -g github:urbansheep/cloudns-tools
# verify credentials and transport
$ cloudns auth check
Built around predictable commands and inspectable output, so agents can reason about actions before they mutate ClouDNS.
List, add, and remove zones with explicit confirmation for destructive commands.
$ cloudns zone list -f json
Manage A, AAAA, MX, TXT, CNAME, NS, SRV, and CAA records from a consistent surface.
$ cloudns record add example.com -T A -N www -V 192.0.2.10
Preview and apply DNS templates for providers like Fastmail, Vercel, Cloudflare, and Google Workspace.
$ cloudns preset diff example.com fastmail
Create JSON or BIND exports. Restore from JSON with dry-run planning before writes.
$ cloudns backup create example.com
Write commands can preview intended changes and exit distinctly when dry-run prevents mutation.
$ cloudns preset apply example.com fastmail -n
JSON mode keeps stdout clean while verbose diagnostics are routed to stderr.
$ cloudns record list example.com -f json
Switch between real command families. The examples mirror the current `cloudns-tools` grammar rather than future roadmap commands.
Run cloudns auth check before touching records. It validates the configured transport and credentials with a read-only CloudNS probe.
Start with a read-only auth check, then use dry-run JSON before writes.