clfdns
v0.5.0
Published
Node.js CLI for managing Cloudflare DNS records
Readme
Cloudflare DNS CLI
Simple Node.js CLI for listing, adding, updating, and deleting DNS records using the Cloudflare TypeScript SDK.
Setup
npm installUsage
Set your token:
export CLOUDFLARE_API_TOKEN=your_tokenList domains:
npx clfdns domainsList records:
npx clfdns list example.comAdd a record:
npx clfdns add example.com --type A --name example.com --content 1.2.3.4 --ttl 3600 --proxied falseUpdate a record:
npx clfdns update example.com <record_id> --content 5.6.7.8Delete a record:
npx clfdns delete example.com <record_id>Build:
npm run buildThen run:
node dist/cli.js list example.com