
Description
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.
SKILL.md
dn configure
Set up authentication credentials for the dn CLI.
Modes
- User mode (default): WordPress.com OAuth. Opens browser for authentication.
- Partner mode: Direct API access via API key + API user credentials.
Usage
# Interactive setup (shows splash screen, mode selection)
dn configure
# Specify mode directly
dn configure --mode=user
dn configure --mode=partner
# Pipe credentials (CI/automation)
echo -e "token" | dn configure --mode=user --stdin
echo -e "api-key\napi-user" | dn configure --mode=partner --stdin
# Custom API URL (partner mode only)
dn configure --mode=partner --api-url=https://custom.api.example.com
Options
| Option | Description |
|---|---|
--mode | partner or user (interactive if omitted) |
--stdin | Read credentials from stdin instead of prompts |
--api-url | Custom API base URL (partner mode only) |
Notes
- Credentials stored in
~/.config/dn/config.jsonwith0600permissions - User mode triggers browser-based OAuth flow (client ID 134319, port 19851)
- Partner mode prompts for API key and user with hidden input
- Can override with env vars:
DN_API_KEY,DN_API_USER,DN_MODE,DN_OAUTH_TOKEN
More skills from the dn-cli repository
View all 18 skillsdn-cart
view WordPress.com domain cart
Apr 6CLIDomainsWordPressdn-check
check domain availability and pricing
Apr 6CLIDomainsdn-checkout
open WordPress.com checkout for domain purchases
Apr 6CLIDomainsWordPressdn-contacts-set
update domain WHOIS contacts
Apr 6CLIDomainsWordPressdn-delete
delete domain registrations via dn CLI
Apr 6CLIDomainsWordPressdn-dns-get
retrieve DNS records for domains
Apr 6CLIDNSDomains
More from Automattic
View publisherannotate
collect visual feedback with browser annotation tools
studio
May 6FrontendProductivityUX CopyUX Designblock-content
write editable WordPress block markup
studio
May 27Block EditorCSSHTMLWordPresshosting-plans-helper
provide WordPress.com hosting plan information
studio
Jul 2PricingReferenceWordPressliberate
migrate websites to WordPress
studio
Jul 9CMSMigrationWeb DevelopmentWordPressneed-for-speed
run frontend performance audits for WordPress sites
studio
May 6AuditFrontendPerformanceWordPressplugin-recommendations
recommend WordPress plugins for site features
studio
May 27Content CreationPlugin DevelopmentWordPress