npm package: @itznamecheap/namecheap-cli
Description: Namecheap CLI — manage domains, DNS, and more from the terminal
Latest version: 1.1.1

# namecheap

The LLM-friendly Namecheap CLI. Manage domains, DNS, nameservers, and more from your terminal.

JSON output for scripts and AI agents. Human-friendly tables by default.

## Install

```bash
npm install -g @itznamecheap/namecheap-cli
```

## Setup

Generate an API key at [namecheap.itz.tools](https://namecheap.itz.tools), then:

```bash
namecheap auth login --api-key sk-itzn_your-key
```

## Usage

```bash
# Check domain availability
namecheap domains check example.com,coolstartup.io

# List your domains
namecheap domains list

# Get domain details
namecheap domains get example.com

# Add a DNS record
namecheap dns add example.com --type A --name @ --address 1.2.3.4

# View DNS records
namecheap dns get example.com

# Set custom nameservers
namecheap dns ns-set example.com ns1.cloudflare.com ns2.cloudflare.com

# Check account balance
namecheap account balance

# Get .com pricing
namecheap account pricing --tld com
```

## JSON output

Add `--json` to any command:

```bash
namecheap domains check example.com --json
```

```json
[
  {
    "domain": "example.com",
    "available": false,
    "isPremium": false,
    "premiumRegistrationPrice": 0,
    "premiumRenewalPrice": 0
  }
]
```

## Commands

| Command | Description |
|---------|-------------|
| **domains** | |
| `namecheap domains check <domains>` | Check availability |
| `namecheap domains list` | List your domains |
| `namecheap domains get <domain>` | Get domain details |
| `namecheap domains register <domain>` | Register a domain |
| `namecheap domains renew <domain>` | Renew a domain |
| `namecheap domains tlds` | List available TLDs |
| **dns** | |
| `namecheap dns get <domain>` | Get DNS records |
| `namecheap dns add <domain>` | Add a record (preserves existing) |
| `namecheap dns remove <domain> <hostId>` | Remove a record |
| `namecheap dns set <domain>` | Replace all records |
| `namecheap dns default <domain>` | Reset to Namecheap DNS |
| `namecheap dns ns-get <domain>` | Get nameservers |
| `namecheap dns ns-set <domain> <ns...>` | Set custom nameservers |
| `namecheap dns ns-create <domain>` | Register glue nameserver |
| `namecheap dns ns-info <domain> <ns>` | Get nameserver info |
| `namecheap dns ns-update <domain> <ns>` | Update nameserver IP |
| `namecheap dns ns-delete <domain> <ns>` | Delete glue nameserver |
| **contacts** | |
| `namecheap contacts get <domain>` | Get WHOIS contacts |
| `namecheap contacts set <domain>` | Set WHOIS contacts |
| **lock** | |
| `namecheap lock get <domain>` | Get registrar lock |
| `namecheap lock set <domain> <lock\|unlock>` | Lock/unlock domain |
| **email-forwarding** | |
| `namecheap email-forwarding get <domain>` | Get rules |
| `namecheap email-forwarding add <domain>` | Add a rule |
| `namecheap email-forwarding set <domain>` | Replace all rules |
| **account** | |
| `namecheap account balance` | Account balance |
| `namecheap account pricing` | Domain pricing |
| **transfers** | |
| `namecheap transfers list` | List transfers |
| `namecheap transfers create <domain>` | Initiate transfer |
| `namecheap transfers status <id>` | Transfer status |
| `namecheap transfers resubmit <id>` | Resubmit transfer |
| **whoisguard** | |
| `namecheap whoisguard list` | List privacy entries |
| `namecheap whoisguard enable <id>` | Enable |
| `namecheap whoisguard disable <id>` | Disable |
| `namecheap whoisguard renew <id>` | Renew |
| `namecheap whoisguard allot <id>` | Allot to domain |
| `namecheap whoisguard unallot <id>` | Unallot |
| `namecheap whoisguard email <id>` | Change email |
| **addresses** | |
| `namecheap addresses list` | List address profiles |
| `namecheap addresses get <id>` | Get address |
| `namecheap addresses create` | Create address |
| `namecheap addresses update <id>` | Update address |
| `namecheap addresses delete <id>` | Delete address |
| `namecheap addresses default <id>` | Set as default |

Use `--help` on any command for full options.

## MCP for Claude

```bash
namecheap mcp install
```

Adds the Namecheap MCP server to Claude Code. Restart Claude Code and Namecheap tools are available.

## Documentation

Full API and CLI reference at [namecheap.itz.tools](https://namecheap.itz.tools).

## Created by

[ITz Julien](https://www.itzjulien.com) · [@julien_c_itz](https://x.com/julien_c_itz)

## License

MIT