By Automattic
Manage domain lifecycles via dn CLI in Claude Code: check availability and generate suggestions, register new domains or add to WordPress.com cart, configure DNS records and WHOIS contacts, enable privacy, renew registrations, transfer in/out, set locks, restore deleted domains, or delete them using partner or user mode APIs.
View the WordPress.com shopping cart using the dn CLI. Use when the user wants to see what domains are in their cart before checkout. User mode only - not available in partner mode.
Check domain name availability and pricing using the dn CLI. Use when the user wants to know if a domain is available, see domain pricing, or verify multiple domains at once. Supports both partner mode (Domain Services API) and user mode (WordPress.com API).
Open WordPress.com checkout in the browser using the dn CLI. Use when the user wants to complete a domain purchase after adding domains to cart. User mode only.
Set up credentials for the dn CLI tool. Use when the user needs to authenticate, switch between partner and user mode, set up API keys, or connect their WordPress.com account via OAuth. Also use when the user mentions "dn configure" or needs to reconfigure their dn CLI setup.
Update domain contact information (WHOIS contacts) using the dn CLI. Use when the user wants to change owner, admin, tech, or billing contacts for a domain. Partner mode only.
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Manage domains from your terminal. dn works in two modes: directly through the Automattic Domain Services API (partner mode), or through WordPress.com (user mode).
composer global require automattic/dn-cli
Make sure ~/.composer/vendor/bin (or ~/.config/composer/vendor/bin) is in your PATH:
export PATH="$HOME/.composer/vendor/bin:$PATH"
git clone https://github.com/Automattic/dn-cli.git
cd dn-cli
composer install
Then run with ./bin/dn or symlink it into your PATH:
ln -s "$(pwd)/bin/dn" /usr/local/bin/dn
Run dn configure to pick a mode and authenticate:
Your mode determines which commands are available. User mode covers domain search, purchase, and transfer through WordPress.com checkout. Partner mode gives you the full set: registration, DNS, contacts, privacy, transfers.
Pipe credentials via stdin for scripts and CI/CD:
# Partner mode
printf '%s\n%s\n' "$DN_API_KEY" "$DN_API_USER" | dn configure --mode=partner --stdin
# User mode (pipe an OAuth token)
printf '%s\n' "$DN_OAUTH_TOKEN" | dn configure --mode=user --stdin
Environment variables override the config file:
# Partner mode
export DN_API_KEY="your-api-key"
export DN_API_USER="your-api-user"
export DN_API_URL="https://custom-endpoint.example.com/command" # optional
# User mode
export DN_OAUTH_TOKEN="your-oauth-token"
# Override mode regardless of config file
export DN_MODE="user" # or "partner"
# Auto-checkout preference (user mode)
export DN_AUTO_CHECKOUT="both" # "credits", "card", or "both"
Stored at ~/.config/dn/config.json with 0600 permissions:
{
"mode": "partner",
"api_key": "your-api-key",
"api_user": "your-api-user"
}
{
"mode": "user",
"oauth_token": "your-oauth-token",
"auto_checkout": "both"
}
To remove stored credentials:
dn reset
Both modes.
dn check example.com
dn check example.com example.net example.org
Both modes.
dn suggest "coffee shop"
# Filter by TLDs and limit results
dn suggest "coffee" --tlds=com,net,io --count=20
# Exact match only
dn suggest "mycoffee" --exact
In partner mode, registers the domain directly:
# Interactive — prompts for contact details
dn register newdomain.com
# Non-interactive with all options
dn register newdomain.com \
--first-name=Jane \
--last-name=Doe \
[email protected] \
--phone=+1.5551234567 \
--address="123 Main St" \
--city="San Francisco" \
--state=CA \
--postal-code=94110 \
--country=US \
--period=2 \
--privacy=on
In user mode, adds the domain to your WordPress.com cart and prints a checkout link:
dn register newdomain.com
# With a specific site
dn register newdomain.com --site=mysite.wordpress.com
Complete purchases from the terminal without opening a browser. Requires a saved payment method or account credits, and contact information on file from a previous purchase.
# Auto-checkout: try credits first, then stored card
dn register newdomain.com --auto-checkout
# Use account credits only
dn register newdomain.com --auto-pay-credits
# Use a stored payment method only
dn register newdomain.com --auto-pay-card
# Skip confirmation prompt (for scripts)
dn register newdomain.com --auto-checkout --yes
Set a persistent preference during dn configure or with the DN_AUTO_CHECKOUT environment variable (credits, card, or both).
dn cart
dn checkout
dn checkout --site=mysite.wordpress.com
dn register adds to cart, dn cart shows what's in it, dn checkout opens WordPress.com checkout in your browser.
Partner mode. In user mode, points you to WordPress.com.
dn info example.com
Both modes. Transfers a domain from another registrar. The domain must be unlocked and you need the EPP authorization code.
In partner mode, submits the transfer directly:
dn transfer example.com --auth-code=ABC123XYZ
In user mode, validates the auth code, adds the transfer to your WordPress.com cart, and prints a checkout link:
dn transfer example.com
# With a specific site
dn transfer example.com --site=mysite.wordpress.com
Auto-checkout works the same as with dn register:
dn transfer example.com --auto-checkout
dn transfer example.com --auto-pay-credits --yes
npx claudepluginhub automattic/dn-cliCreate WordPress block themes from simple descriptions and deploy them to a local WordPress Studio site. Generate professional themes through an interactive workflow: describe your site, choose from design options, and preview on a real WordPress installation.
Create WordPress block themes from simple descriptions and deploy them to a local WordPress Studio site, or, generate professional themes through an interactive workflow: describe your site, choose from design options, and preview on a real WordPress installation.
Craft production-grade WordPress sites and applications. Everything from themes and plugins to commerce and deployment.
Extract content from closed web platforms (GoDaddy Websites & Marketing, Hostinger, HubSpot, Shopify, Squarespace, Webflow, Weebly, Wix) into WordPress-compatible WXR files. Inspect, extract, QA, and import to WordPress.
An agent orchestrator that runs teams of agents autonomously through a pipeline of defined phases, where each phase produces concrete, inspectable artifacts.
Ultra-compressed communication mode. Cuts ~75% of tokens while keeping full technical accuracy by speaking like a caveman.
Frontend design skill for UI/UX implementation
Comprehensive UI/UX design plugin for mobile (iOS, Android, React Native) and web applications with design systems, accessibility, and modern patterns
Memory compression system for Claude Code - persist context across sessions
Marketing skills for AI agents — conversion optimization, copywriting, SEO, paid ads, ad creative, and growth
Standalone image generation plugin using Nano Banana MCP server. Generates and edits images, icons, diagrams, patterns, and visual assets via Gemini image models. No Gemini CLI dependency required.