cloudflare-ddns-updater-cli
v1.0.1
Published
Cloudflare DDNS CLI: Effortlessly manage DNS with automatic updates through this command-line tool. Set it up, sit back, and enjoy hassle-free dynamic DNS using Cloudflare!
Maintainers
Readme
CloudFlare DDNS Updater CLI
:globe_with_meridians: Cloudflare DDNS Updater CLI: Effortlessly manage DNS with automatic updates through this command-line tool. :rocket:
Installation
npm install -g cloudflare-ddns-updater-cliUsage
cf-ddns {--zone-id <zoneID> | --zone-name <zoneName>} --record-name <recordName> --token <apiToken>Options
-i, --zone-id <zoneId>: The ID of the zone to update. You can find it at the bottom right on the overview page of you CloudFlare project. It conflicts with--zone-name. It also checks forCF_ZONE_IDenvironment variable.-n, --zone-name <zoneName>: The name of the zone to update (example:domain.com). It conflicts with--zone-id. It also checks forCF_ZONE_NAMEenvironment variable.-r, --record-name <recordName>: The name of the record to update (example:home.domain.com). It also checks forCF_RECORD_NAMEenvironment variable.-t, --token <apiToken>: The API token to use. It also checks forCF_API_TOKENenvironment variable. See Create CloudFlare API Token for more information.
Note: either
-i, --zone-idor-n, --zone-namemust be specified.
Alias
cloudflare-ddnsCreate CloudFlare API Token
- Open the API Tokens page on your CloudFlare dashboard.
- Click on
Create Token. - Select
Edit zone DNStemplate. - Select the Zone Resources you want to update.
- Click on
Continue to summary. - Click on
Create Token. - Copy the token and use it with the
-t, --tokenoption.
