Check auth
Run cloudns auth check before touching records.
ClouDNS operations CLI
CloudNS Tools wraps ClouDNS with predictable commands, dry-run previews, JSON output, and SSH or direct transport for IP-whitelisted accounts.
npm install -g github:urbansheep/cloudns-tools
curl -fsSL https://cloudns.urbansheep.com/install.sh | sh
$ cloudns preset apply example.com fastmail --dry-run -f json
{
"action": "preset apply",
"status": "skipped",
"recordsAffected": 3
}
$ cloudns preset apply example.com fastmail -f json
{
"action": "preset apply",
"status": "ok",
"recordsAffected": 3
}
Agent-first flow
Run cloudns auth check before touching records.
Use --dry-run -f json so automation can inspect intended changes.
Repeated adds and preset applies converge instead of duplicating records.
JSON output stays clean while verbose diagnostics go to stderr.
Transports
SSH mode runs API calls through remote curl on your whitelisted VPS.
Direct mode runs local curl for agents already executing on the VPS.
Secrets are sent through POST data, not command-line arguments.