dn-configure

作成者: automattic

dn CLIツールの認証情報を設定します。ユーザーが認証を行う必要がある場合、パートナーモードとユーザーモードを切り替える場合、APIキーを設定する場合、または接続する場合に使用します…

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

automatticのその他のスキル

wp-phpstan
automattic
WordPressプロジェクト(プラグイン/テーマ/サイト)でPHPStan静的解析の設定、実行、修正を行う際に使用:phpstan.neonのセットアップ、ベースライン、…
official
wp-playground
automattic
WordPress Playgroundのワークフローに使用:ブラウザまたはローカルで@wp-playground/cli(サーバー、run-blueprint、build-snapshot)を介した高速な使い捨てWPインスタンス、…
official
wp-plugin-development
automattic
WordPressプラグイン開発時に使用:アーキテクチャとフック、アクティベーション/ディアクティベーション/アンインストール、管理UIとSettings API、データストレージ、cron/タスク、セキュリティ…
official
wp-project-triage
automattic
WordPressリポジトリ(プラグイン/テーマ/ブロックテーマ/WPコア/Gutenberg/フルサイト)のツール/テスト/バージョンなどを含む決定的な検査が必要な場合に使用します。
official
wp-rest-api
automattic
WordPress REST APIのエンドポイント/ルート(register_rest_route、WP_REST_Controller/コントローラークラス、スキーマ/引数…)の構築、拡張、デバッグ時に使用します。
official
wp-wpcli-and-ops
automattic
WordPressの操作でWP-CLI(wp)を使用する際に利用:安全な検索置換、データベースのエクスポート/インポート、プラグイン/テーマ/ユーザー/コンテンツ管理、cron、キャッシュフラッシュなど
official
wpds
automattic
WordPress Design System(WPDS)とそのコンポーネント、トークン、パターンなどを活用してUIを構築する際に使用します。
official
woocommerce-finalize
automattic
WooCommerceプラグインのプレリリースコード健全性とトレーサビリティ監査。コードレビュー後に実行され、デッドコード、重複、構造的複雑性などに焦点を当てます…
official