setup

作者: automattic

確認 dn CLI 已安裝並配置完成。當使用者首次安裝 domain-names 插件時,或當 dn 命令因 CLI 未…而失敗時使用。

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

Setup

Check that the dn CLI is ready to use.

Steps

  1. Run which dn to check if the CLI is on PATH.
  2. If dn is not found:
    • Tell the user to install it: composer global require automattic/dn-cli
    • Remind them that ~/.composer/vendor/bin (or ~/.config/composer/vendor/bin) must be in their PATH
    • Stop here until they install it
  3. If dn is found, run dn list to verify it works.
  4. If the output looks normal, tell the user they're ready and can run dn configure to set up credentials (or /domain-names:dn-configure for guided setup).

來自 automattic 的更多技能