CLI for desec DNS API
CLI tool for the desec.io DNS service.
Arch Linux:
yay -S desec-dns-cli
Python (user install):
pip install --user desec-dns-cli
or with pipx:
pipx install desec-dns-cli
Create an account with this command:
desec-dns-cli account register "myemail@example.com" "supersecure123!"
You can pipe the password to stdin with the -p
option. With that you could retrieve it from a password manager like
pass:
pass show -c accounts/desec.io | desec-dns-cli account register -p "myemail@example.com"
The command will obtain a captcha and display it in the default browser. Try to solve it and enter the solution in the prompt.
desec-dns-cli account login "myemail@example.com" "supersecure123!"
You can pipe the password to stdin with the -p
option.
echo "supersecure123!" | desec-dns-cli account login -p "myemail@example.com"
The command will create an auth token
in your deSEC account. You can save it to the config file under
~/.config/desec-dns-cli.conf
with the --save
option.
To logout and remove the token from your account use:
desec-dns-cli account logout "my-token"
You need an active auth token in your config file for most operations to work.
Get your account info in several formats:
desec-dns-cli account info -f json
Fill in the token and you'll get an email with a link to reset your password.
desec-dns-cli account reset-password email@example.com
Not implemented yet
Not implemented yet
Not implemented yet
You can use the desec-dns-cli account login --save
command to create a new token and save it to the config. To save an
already existing token use:
desec-dns-cli token save "mytoken"
Not implemented yet
Not implemented yet
Not implemented yet
Not implemented yet
Not implemented yet
Made with ❤️ and 🐍.