How to install Strapi CLI ?
T
TB
Hello,
I've cloned a repository that was newly created by another person.
After running yarn install, seems like the CLI is still not installed and no instruction on how to install just the cli on the machine is given on https://docs.strapi.io/dev-docs/installation/cli
It assumes you already have the CLI installed, or I guess the cli is installed when you start a brand new project, which is not the case here.
Thanks
Pierre Wizla
Hi TB 👋
I'm Pierre, Lead Technical Writer at Strapi.
I'm happy you found the solution yourself!
It's indeed mentioned in the introduction of the CLI documentation: https://docs.strapi.io/dev-docs/cli. This page is about "how to use the
strapi
CLI on an existing project", while the CLI installation documentation (the page you linked) is about "how to install a Strapi project with the CLI."I understand this might be a bit confusing 😅 Would you like us to improve this and disambiguate the wording?
Or maybe if you're interested you could even contribute to the documentation and suggest an update by creating a pull request? 😊
https://github.com/strapi/documentation/blob/main/CONTRIBUTING.md,
T
TB
Answer to myself:
Strapi cli is bundled inside the depandancies.
Run:
npm run strapi
or
yarn strapi
to run it :)