Inspo from here.
python -m pip install -U gopappy
- Run
gopappy
to setup authentication - Three values are needed to authenticate:
- API Key
- API Secret
- Domain
# A record
gopappy add-record $DOMAIN -t A -n subdomain -d 127.0.0.1
# CNAME
gopappy add-record $DOMAIN -t CNAME -n www -d $DOMAIN
# TXT
gopappy add-record $DOMAIN -t TXT -n subdomain -d "some text here"
gopappy delete-record $DOMAIN -t A -n subdomain
# list all records
gopappy records $DOMAIN
# filter by record type
gopappy records $DOMAIN -t cname
gopappy domains
# mydomain1.com
# mydomain2.com
gopappy check $DOMAIN
- Control for no arguments (e.g., call
--help
)λ gopappy Failed to retrieve environment variables from keyring Enter your GoDaddy API Key: Enter your GoDaddy API Secret: Enter your GoDaddy Domain: testytesterson.com Successfully set environment variables in keyring! Usage: gopappy [OPTIONS] COMMAND [ARGS]... Try 'gopappy --help' for help. ╭─ Error ───────────────────────────────────────────────────────────────────────────────────────────────────╮ │ Missing command. │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────╯
- Add subcommand to manage
auth
- CRUD