Installation
Standalone binaries
Section titled “Standalone binaries”Pre-compiled binaries are available for Linux and macOS. They bundle Bash and jq, the two dependencies a host is most likely to lack or to have in too old a version. curl and the usual command line tools are taken from the system, and the self-extracting launcher needs tar to unpack itself. On Windows, see below.
-
Download the latest release for your platform from the Releases page:
- Linux:
cf-updater-linux-x86_64(Intel/AMD) orcf-updater-linux-aarch64(ARM/Raspberry Pi) - macOS:
cf-updater-macos-x86_64(Intel) orcf-updater-macos-aarch64(Apple Silicon)
- Linux:
-
Make it executable (Linux/macOS):
Terminal window chmod +x cf-updater-linux-x86_64 -
Run it from the directory that contains your
cloudflare-dns.yaml, or pass the config path as an argument:Terminal window ./cf-updater-linux-x86_64 /path/to/cloudflare-dns.yaml
Windows
Section titled “Windows”There is no Windows binary. This program needs a real Bash: it relies on arrays, BASH_SOURCE and here-strings, none of which BusyBox’s ash implements, and there is no single-file static Bash for Windows to bundle instead.
Run it from source under one of:
- WSL, which gives you a normal Linux environment and is the smoothest option.
- Git Bash, which ships Bash,
sed,grepandcurl. - MSYS2, if you already use it.
Follow the From source steps as on Linux. See Automation for scheduling with Task Scheduler.
From source
Section titled “From source”Requirements:
- Bash 4.0+
- curl (wget or PowerShell are used as fallbacks)
- jq — strongly recommended; without it a slower, limited parser is used
git clone https://github.com/jmrplens/Cloudflare-DNS-Updater.gitcd Cloudflare-DNS-Updatercp config.example.yaml cloudflare-dns.yamlchmod 600 cloudflare-dns.yaml./cloudflare-dns-updater.shThe launcher looks for cloudflare-dns.yaml next to itself.