@subdns/cli
v0.2.2
Published
CLI for SubDNS — claim your corner of the internet, manage subdomains and DNS records from the terminal.
Maintainers
Readme
@subdns/cli
CLI for SubDNS — manage subdomains and DNS records from the terminal.
Install
npm install -g @subdns/cliSetup
subdns login # interactive API key entry
subdns login --key sk_xxx # pass key inline
subdns status # verify your sessionCredentials are stored in ~/.subdns/config.json.
Commands
| Command | Description |
|---------|-------------|
| login | Authenticate with an API key |
| logout | Clear stored credentials |
| status | Show account and session info |
| config | Show or edit configuration |
| claim <name> | Create a subdomain |
| list / ls | List all subdomains |
| info <id> | Show subdomain details |
| release <id> | Delete a subdomain |
| dns add <subdomainId> | Add a DNS record |
| dns rm <recordId> | Delete a DNS record |
| logs | Show account activity |
Examples
subdns claim my-project
subdns ls
subdns dns add <id> --type A --name @ --value 1.2.3.4 --ttl 300
subdns dns rm <recordId>
subdns logs
subdns logoutLicense
MIT
