dn-register

Register a new domain name using the dn CLI. Use when the user wants to purchase or register a domain. In partner mode, performs direct registration with…

npx skills add https://github.com/automattic/dn-cli --skill dn-register

dn register

Register a new domain name.

Usage

# Partner mode: register with contact details (interactive prompts for missing fields)
dn register example.com
dn register example.com --period=2 --privacy=on

# Partner mode: full non-interactive registration
dn register example.com \
  --first-name=John --last-name=Doe \
  --email=john@example.com --phone=+1.5551234567 \
  --address="123 Main St" --city=Springfield --state=IL \
  --postal-code=62701 --country=US

# Premium domain (partner mode)
dn register premium.com --price=50000

# User mode: adds domain to cart (no direct registration)
dn register example.com

# User mode with site association
dn register example.com --site=mysite.wordpress.com

Options

OptionDescription
--period, -pRegistration period in years (default: 1)
--privacyon (default), off, or redact (partner mode)
--pricePrice in cents for premium domains (partner mode)
--site, -sWordPress.com site slug (user mode)
--first-name, --last-name, etc.Contact details (partner mode, prompted if missing)

Behavior by Mode

  • Partner mode: Registers directly via API. Prompts for contact info if not provided via flags. Asks for confirmation before proceeding.
  • User mode: Checks availability first, then adds to WPCOM shopping cart. Outputs a checkout URL. Use dn checkout to complete purchase in browser.

Notes

  • In user mode, defaults to domain-only siteless checkout (no-site)
  • Product slug mapping: .com = domain_reg, others = dot{tld}_domain

More skills from automattic

dn-info
automattic
Get detailed information about a registered domain using the dn CLI. Use when the user wants to see domain details like expiration date, nameservers, contacts,…
official
wordpress-plugin-publish
automattic
Use this skill when publishing, submitting, reuploading, verifying, packaging, checking, demoing, or releasing WordPress.org plugins with Pressship. It covers…
official
dev
automattic
Development workflows for WordPress ActivityPub plugin including wp-env setup, testing commands, linting, and build processes. Use when setting up development…
official
gitattributes
automattic
Use when auditing or updating .gitattributes export-ignore coverage so dev-only files (lint configs, CI, tests, docs, build tooling) don't ship in the…
official
integrations
automattic
Third-party WordPress plugin integration patterns. Use when adding new integrations, debugging compatibility with other plugins, or working with existing…
official
design-systems
automattic
Bold aesthetic direction guidance for web design. Use when making creative decisions about typography, color, motion, spatial composition, and overall visual…
official
site-specification
automattic
Extract comprehensive site specifications from simple descriptions. Use when analyzing a user's theme request to determine site type, audience, tone, layout…
official
wordpress-block-theming
automattic
WordPress Full Site Editing (FSE) theme architecture. Use when generating theme.json, block templates, template parts, patterns, and functions.php for…
official