namecheap-go
is a Namecheap API CLI app.
go get github.com/jsgv/namecheap-go/cmd/namecheap
- Call a command
namecheap domains getlist
- Print help message for command with description and available flags
namecheap domains getlist -h
Auth configuration can be set with flags or a file. You will need to get the auth values from Namecheap.
Flag | Description |
---|---|
--apiKey | Password required used to access the API |
--apiUser | Username required to access the API |
--clientIP | An IP address of the server from which our system receives API calls (only IPv4 can be used) |
namecheap domains getinfo --domainname example.com \
--apiKey XXXXXXXXXXXXXXX --apiUser XXXXXXXX --clientIP 127.0.0.1
Configuration file path is ~/.config/namecheap/config.yml
with the same names as the flags.
With this option you don't have to set the configuration params with every call.
apiKey: XXXXXXXXXXXXXXX
apiUser: XXXXXXXX
clientIP: 127.0.0.1
namecheap domains getinfo --domainname example.com
I have not tested all the live responses returned from the API. There might be some wrong ones. I have found incorrect details in the Namecheap API documentation. Feel free to open an issue letting me know and I will fix it.
- Domains
- Domains DNS
- Domains NS
- Domains Transfer
- SSL
- Users
- Users Address
- Whoisguard