Skip to content

jsgv/namecheap-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Namecheap Go

Go Reference Go Build Status

namecheap-go is a Namecheap API CLI app.

Installation

go get github.com/jsgv/namecheap-go/cmd/namecheap

Usage

  • Call a command

namecheap domains getlist

  • Print help message for command with description and available flags

namecheap domains getlist -h

Auth

Auth configuration can be set with flags or a file. You will need to get the auth values from Namecheap.

Flags

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

File

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

Note

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.

Implemented methods

About

CLI app to interact with the Namecheap API

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages