Skip to content

🌐 Cloudflare DDNS CLI: Effortlessly manage DNS with automatic updates through this command-line tool. πŸš€

License

Notifications You must be signed in to change notification settings

acerbisgianluca/cloudflare-ddns-updater-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

CloudFlare DDNS Updater CLI

🌐 Cloudflare DDNS Updater CLI: Effortlessly manage DNS with automatic updates through this command-line tool. πŸš€

npm GitHub GitHub Workflow Status (with event) Codecov branch

Installation

npm install -g cloudflare-ddns-updater-cli

Usage

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 for CF_ZONE_ID environment variable.
  • -n, --zone-name <zoneName>: The name of the zone to update (example: domain.com). It conflicts with --zone-id. It also checks for CF_ZONE_NAME environment variable.
  • -r, --record-name <recordName>: The name of the record to update (example: home.domain.com). It also checks for CF_RECORD_NAME environment variable.
  • -t, --token <apiToken>: The API token to use. It also checks for CF_API_TOKEN environment variable. See Create CloudFlare API Token for more information.

Note: either -i, --zone-id or -n, --zone-name must be specified.

Alias

cloudflare-ddns

Create CloudFlare API Token

  • Open the API Tokens page on your CloudFlare dashboard.
  • Click on Create Token.
  • Select Edit zone DNS template.
  • 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, --token option.

About

🌐 Cloudflare DDNS CLI: Effortlessly manage DNS with automatic updates through this command-line tool. πŸš€

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published