strapi install code example
Example 1: start strapi app
yarn create strapi-app my-project --quickstart
npx create strapi-app my-project --quickstart
Example 2: install strapi cli
npm install strapi@alpha -g
Example 3: create strapi app
with npm => npx create-strapi-app my-app --quickstart
with yarn => yarn create strapi-app my-project --quickstart
Example 4: npm install strapi
npm install strapi@beta -g
strapi new my-project --quickstart