setup
par automattic
Vérifier que l'interface en ligne de commande dn est installée et configurée. Utiliser lorsque l'utilisateur installe pour la première fois le plugin domain-names, ou lorsqu'une commande dn échoue parce que l'interface en ligne de commande est…
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).