duckup-cli is a command-line interface (CLI) tool for updating DuckDNS records easily. This tool allows you to manage your DuckDNS domains directly from the terminal.
duckup: Update your DuckDNS records.duckup-init: Set your DuckDNS token and domain values interactively.
To install the duckup-cli, clone the repository and navigate into the project directory:
git clone https://github.com/DaveMeade/duckup-cli
cd duckup-cliThen, install the dependencies:
npm installYou can quickly set up the required environment variables using the interactive helper:
duckup-initThis command will prompt you for your DuckDNS token and domains, and automatically add the necessary export statements to your shell profile (e.g., .zshrc, .bashrc, or .profile).
After running duckup-init, restart your terminal or run source ~/.zshrc (or the appropriate profile file) to apply the changes.
Alternatively, you can set the environment variables manually:
export DUCK_TOKEN="abcd123456"
export DUCK_DOMAINS="myhost,backuphost"Make sure to replace "abcd123456" with your actual DuckDNS token and "myhost,backuphost" with your actual DuckDNS domains.
To run the CLI command, use:
duckupTo link the CLI globally for your user, run:
sudo npm linkThis will make both duckup and duckup-init available as global commands.
This project is licensed under the MIT License.