setup
от automattic
Проверить, что dn CLI установлен и настроен. Используется, когда пользователь впервые устанавливает плагин domain-names или когда команда dn не выполняется, потому что CLI…
npx skills add https://github.com/automattic/dn-cli --skill setupSetup
Check that the dn CLI is ready to use.
Steps
- Run
which dnto check if the CLI is on PATH. - If
dnis 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
- Tell the user to install it:
- If
dnis found, rundn listto verify it works. - If the output looks normal, tell the user they're ready and can run
dn configureto set up credentials (or/domain-names:dn-configurefor guided setup).