Developers → CLI
One static binary for macOS, Linux and Windows, on Intel and ARM. Manage DNS, SSL, domains, app servers, email, uptime monitors and webhooks from your terminal or your scripts, and connect your AI clients to NameOcean in one command.
$ curl -fsSL https://nameocean.net/install.sh | sh
The script checks the download against checksums.txt and installs to /usr/local/bin, or ~/.local/bin when that is not writable.
$ brew trust --formula nameocean/tap/nameocean $ brew install nameocean/tap/nameocean
Homebrew 7 loads formulae from other taps only after you trust them. The first command trusts just the nameocean formula, not the whole tap.
One file, nothing to install. These links always serve the latest release.
| Intel / AMD (x86-64) | ARM | |
|---|---|---|
| macOS | nameocean-darwin-amd64 | nameocean-darwin-arm64 (Apple silicon) |
| Linux | nameocean-linux-amd64 | nameocean-linux-arm64 |
| Windows | nameocean-windows-amd64.exe | nameocean-windows-arm64.exe |
$ chmod +x nameocean-darwin-arm64 $ xattr -d com.apple.quarantine nameocean-darwin-arm64 # macOS, downloaded in the browser $ sudo mv nameocean-darwin-arm64 /usr/local/bin/nameocean
On Windows, rename the file to nameocean.exe and put it in a folder on your PATH. The binaries are not signed yet, so macOS Gatekeeper and Windows SmartScreen may warn the first time. Check a download against checksums.txt; older versions and archives are on GitHub Releases.
$ nameocean login $ nameocean account
login opens the browser to approve the CLI (OAuth with PKCE). Tokens are kept in the OS keychain and refreshed automatically; nameocean logout revokes them. On a machine without a keychain, such as a Linux server, they are saved to ~/.config/nameocean/credentials.json, readable only by you.
$ nameocean login --device Open https://nameocean.net/device on any device, sign in and enter this code: BCDF-GHJK
Where no browser can open on the same machine, such as an SSH session, login shows a code instead (the default when SSH_CONNECTION is set). Enter it at nameocean.net/device on your phone or laptop and choose what the CLI may do. The code lasts 10 minutes; approve only a code you started yourself.
$ export NAMEOCEAN_API_KEY=<API key> $ nameocean dns ls example.com
Get the key from Dashboard → API Key. NAMEOCEAN_API_KEY always wins over saved credentials, and nothing is written to disk.
$ nameocean mcp install
Finds Claude Code, Cursor, OpenCode and VS Code on your computer and adds the NameOcean MCP server to each. Your existing settings are kept. The client signs in in the browser the first time it uses a NameOcean tool.
| account | Email, credit, domain and zone counts |
| audit [--channel cli] [-n 50] | Activity log: who changed what, through the API, CLI, MCP or dashboard |
| domains ls | Your domains with expiry, auto-renew and lock |
| domains info <domain> | Expiry, auto-renew, lock, nameservers and SSL of one of your domains |
| domains autorenew <domain> --on|--off | Renew from account credit before expiry, or not |
| domains lock|unlock <domain> | Turn the transfer lock on or off |
| domains ns <domain> [nameocean | ns1 ns2…] | Show or set the nameservers; nameocean points the domain back to NameOcean DNS |
| domains auth-code <domain> | The transfer (EPP) code, to move a domain to another registrar |
| domains check <domain> [--years N] | Availability and price |
| domains search <word> [--all] | Available names on popular TLDs, with yearly prices |
| domains whois <domain> [--raw] | Registrar, dates, status and nameservers of any domain |
| domains register <domain> [--years N] [--yes] | Print the price; with --yes register it from account credit |
| domains renew <domain> [--yes] | Print the price; with --yes renew it for a year |
| transfers check <domain> | Can the domain move here now, from which registrar, and the price |
| transfers start <domain> --auth-code <code> [--yes] | Print the price; with --yes pay and start the transfer (a failed one is retried free) |
| transfers ls [--name <domain>] | Transfers in and out and their state |
| tlds ls · tlds info <tld> | Prices of every extension; periods and rules of one |
| sandbox reset | With a test key: delete the test domains and reset the test credit |
| dns ls [zone] | Your zones, or the records of one zone |
| dns add <zone> <type> <hostname> <value> [--ttl 1h] [--priority N] | Add a record: A, AAAA, CNAME, MX, TXT, SRV, PTR, CAA, NS, DS or an HTTP redirect |
| dns rm <zone> <type> <id> | Delete a record |
| dns export <zone> [-o dns.yaml] | The zone as a YAML, JSON or (--format bind, -o x.zone) BIND file |
| dns plan -f dns.yaml [--keep-unlisted] [--detailed-exitcode] | What apply would add, change and delete · DNS as code |
| dns apply -f dns.yaml [--yes] | Make the zone match the file, in one transaction |
| dns dnssec status|on|off <zone> | DNSSEC for a zone, with its DNSKEY and DS record |
| dns history <zone> [--limit N] | Who changed which record, when · DNS as code |
| dns revert <zone> <id> | Undo one change from the history |
| ssl status <zone> | Certificate state and expiry |
| ssl issue <zone> [--wait] | Issue a wildcard Let's Encrypt certificate |
| ssl download <zone> [-o file.zip] | Save the certificate and private key as a zip |
| servers ls | Your app servers |
| servers info <server> | SSH, git remote, ports and domains of a server |
| servers rename <server> <name> | Change the name shown in the dashboard, API and CLI |
| servers ssh <server> [-- command] | Open a shell, or run one command, with your own ssh |
| deploy [server] [--no-origin] | Add the git remote, push to the server (and origin), restart the apps |
| servers plans | create --plan P --yes | Plans and prices; create a server |
| servers resize <server> --plan P --yes | Move to a bigger plan, without a restart |
| servers start|stop|restart <server> | Start, stop or reboot the server |
| servers apps|restart-apps <server> | Supervisor programs; restart them and reload nginx |
| servers logs <server> [--app A] [-n 200] [-f] | The last lines of an app's output, or app=nginx |
| servers env ls|set|unset <server> [NAME=value…] | Env variables every app gets; the apps restart after a change |
| servers ssh-keys ls|add|rm <server> | Keys that can log in and push |
| servers backups ls|now|restore <server> | List backups, back up now, restore one over the server |
| servers deploys <server> | The commit the server runs and its recent deploys |
| apps ls · servers create --plan P --app A --yes | One-click apps (WordPress, n8n, Ghost…); create a server that runs one |
| servers app info|update|restart|retry|logs|login <server> | The server's one-click app: status, update (backup first), restart, logs and admin login |
| servers app auto-update <server> on|off | Nightly updates within the same major version |
| ports ls|open|close <server> <port> [-p udp] | Open and close TCP/UDP ports; the external port is assigned |
| bind <domain> <server> | Serve a domain from a server: DNS, SSL and load balancer |
| unbind <domain> <server> | Stop serving a domain from a server |
| email send --from --to --subject [--text|--html|--attach] | Send an email from one of your mailboxes |
| email sent ls|info [--status --to] | What happened to the mail you sent: delivered, bounced, suppressed |
| email suppressions ls|add|rm <domain> [address] | Addresses your domain no longer sends to |
| email sending | This month's emails used and free, pay as you go, amount so far |
| email sending set --pay-as-you-go on|off --spend-cap USD|none | Turn pay as you go on or off, set the monthly spend cap |
| email sending-domains ls|add|info|verify|smtp-password|rm | Send from a domain over SMTP or the API without a mailbox: SPF, DKIM and SMTP login |
| email domains ls|info <domain> | Mail domains, their mailboxes, aliases, lists and mail app settings |
| email check <domain> | NS, MX, SPF, DKIM and DMARC of a mail domain, live |
| email mailboxes ls|add|set|passwd|rm <domain> <username> | Create mailboxes, change quota, set or generate passwords, delete |
| email aliases ls|add|rm <domain> <alias> [mailbox] | Extra addresses delivered to a mailbox |
| email lists ls|add|members|rm <domain> <address> [member…] | Mailing lists of the domain's mailboxes |
| email forwards ls|on|off|add|rm|targets|verify|resend|log|release | Free forwarding for domains registered at NameOcean, and its mail log |
| email inbound ls|add|rotate|test|enable|rm <domain> <localpart> [url] | Post an address's incoming mail to your endpoint as signed JSON |
| monitors ls|info <id> | Health checks: status, uptime, response time, state per location |
| monitors add <url|host:port> [--status 200] [--keyword K] | Add an HTTP(S) or TCP check; --kind push for a cron heartbeat |
| monitors set|pause|resume|incidents|rm <id> | Change, pause or delete a monitor; its downtime history |
| status-pages ls|info|add|set|check-domain|rm | Public status pages of your monitors, on your own domain too |
| webhooks add <url> --events 'dns.*,ssl.issued' | Signed events to your HTTPS endpoint; prints the signing secret |
| webhooks ls|events|info|set|test|deliveries|resend|rm | Event types, test events, delivery log and retries |
| mcp install [--client claude-code,cursor,opencode,vscode] | Connect AI clients to the MCP server |
| login | logout | Sign in with the browser, a code (--device) or --token; sign out and revoke |
| completion bash|zsh|fish|powershell | Shell completion |
$ nameocean dns add example.com A @ 203.0.113.10 --ttl 5m $ nameocean dns add example.com CNAME www @ $ nameocean dns add example.com MX @ mail.example.com --priority 10 $ nameocean dns add example.com TXT @ "v=spf1 include:_spf.google.com ~all" $ nameocean ssl issue example.com --wait $ nameocean bind example.com 3f9a1c2e $ nameocean monitors add https://example.com/health --status 200 $ nameocean webhooks add https://example.com/hooks --events 'dns.*,ssl.issued' $ nameocean servers ls --json | jq '.servers[].default_domain'
Every command takes --json and then prints the API's JSON unchanged; errors come as an error object on stdout. A failed command exits with a non-zero code.
Commands that spend credit (domains register, domains renew, transfers start) only print the price unless you add --yes. They need the billing:write permission and stop at your monthly spending limit for the API, CLI and AI agents, set in Dashboard → API keys; nameocean account shows what is left. To try them without spending, set NAMEOCEAN_API_KEY to a test key (no_test_...).
Release notes are on GitHub Releases; report bugs in Issues. Run the install script again, or brew upgrade nameocean, to update.