dn-configure

โดย automattic

ตั้งค่าข้อมูลประจำตัวสำหรับเครื่องมือ CLI dn ใช้เมื่อผู้ใช้จำเป็นต้องยืนยันตัวตน สลับระหว่างโหมดพาร์ทเนอร์และผู้ใช้ ตั้งค่า API keys หรือเชื่อมต่อ...

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

Skills เพิ่มเติมจาก automattic

wp-phpstan
automattic
ใช้เมื่อกำหนดค่า เรียกใช้ หรือแก้ไขการวิเคราะห์แบบสแตติกของ PHPStan ในโปรเจกต์ WordPress (ปลั๊กอิน/ธีม/ไซต์): การตั้งค่า phpstan.neon, เบสไลน์,…
official
wp-playground
automattic
ใช้สำหรับเวิร์กโฟลว์ของ WordPress Playground: อินสแตนซ์ WP แบบใช้แล้วทิ้งที่รวดเร็วในเบราว์เซอร์หรือในเครื่องผ่าน @wp-playground/cli (server, run-blueprint, build-snapshot),…
official
wp-plugin-development
automattic
ใช้เมื่อพัฒนา WordPress plugins: สถาปัตยกรรมและ hooks, การเปิดใช้งาน/ปิดใช้งาน/ถอนการติดตั้ง, UI สำหรับผู้ดูแลระบบและ Settings API, การจัดเก็บข้อมูล, cron/งาน, ความปลอดภัย…
official
wp-project-triage
automattic
ใช้เมื่อคุณต้องการตรวจสอบที่เก็บ WordPress (ปลั๊กอิน/ธีม/ธีมบล็อก/WP core/Gutenberg/ทั้งไซต์) อย่างแน่นอน รวมถึงเครื่องมือ/การทดสอบ/เวอร์ชัน…
official
wp-rest-api
automattic
ใช้เมื่อสร้าง ขยาย หรือดีบักเอนด์พอยต์/เส้นทางของ WordPress REST API: register_rest_route, คลาส WP_REST_Controller/controller, schema/argument…
official
wp-wpcli-and-ops
automattic
ใช้เมื่อทำงานกับ WP-CLI (wp) สำหรับการดำเนินการ WordPress: การค้นหาและแทนที่อย่างปลอดภัย, การส่งออก/นำเข้าฐานข้อมูล, การจัดการปลั๊กอิน/ธีม/ผู้ใช้/เนื้อหา, cron, การล้างแคช,…
official
wpds
automattic
ใช้เมื่อสร้าง UI ที่ใช้ประโยชน์จาก WordPress Design System (WPDS) และส่วนประกอบ โทเค็น รูปแบบ ฯลฯ
official
woocommerce-finalize
automattic
การตรวจสอบสุขภาพโค้ดและความสามารถในการตรวจสอบย้อนกลับก่อนเผยแพร่สำหรับปลั๊กอิน WooCommerce ดำเนินการหลังจากการตรวจสอบโค้ด -- เน้นที่โค้ดที่ไม่ได้ใช้ การซ้ำซ้อน ความซับซ้อนเชิงโครงสร้าง และ...
official