godaddy-cli

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 6 Imported by: 0

README

GoDaddy CLI

As an everyday maintainer of many domains I've found CLIs very useful (e.g AWS). I've created this simple CLI to manage your GoDaddy domains.

Setup

In order to get godaddy-cli to work you need to get your GoDaddy keys and place them in $HOME/.config/godaddy/credentials.json

Installation

$ git clone [email protected]/Cabemo/godaddy-cli
$ cd godaddy-cli
$ make
$ sudo make install

Uninstall

$ sudo make uninstall

Examples

List your domains
$ godaddy domains list
awesomedomain.com
anotherone.org
$ godaddy domains search example.com
Domain       Available Price     Period
example.com  true      11.99 USD 1 year(s)
List the DNS records for one of your domains
$ godaddy records list --domain example.com
A    	 600	             @	134.233.0.41
NS   	3600	             @	ns23.domaincontrol.com
NS   	3600	             @	ns24.domaincontrol.com
CNAME	3600	           www	@
CNAME	3600	_domainconnect	_domainconnect.gd.domaincontrol.com
Add DNS records (A, AAAA, CNAME, MX, TXT)

Type and ttl have default values 'A' and 600 respectively. If you are setting an MX record you must pass the --priority flag too.

$ godaddy records add --domain example.com --type txt --name some --value test --ttl 600
Added: TXT 600 some test
Remove DNS records

In here you only need the domain, type and name

$ godaddy records remove --domain example.com --type txt --name some

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
config
Package config sets up all the configuration for GoDaddy CLI
Package config sets up all the configuration for GoDaddy CLI
domains
Package domains has all logic to manage domains
Package domains has all logic to manage domains
records
Package records has all the logic for managing records
Package records has all the logic for managing records
util
Package util contains util functions for godaddy-cli
Package util contains util functions for godaddy-cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL