dn-configure

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…

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

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

OptionDescription
--modepartner or user (interactive if omitted)
--stdinRead credentials from stdin instead of prompts
--api-urlCustom API base URL (partner mode only)

Notes

  • Credentials stored in ~/.config/dn/config.json with 0600 permissions
  • 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 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