Installing from CLI
Strapi CLI (Command Line Interface) installation scripts are the fastest way to get Strapi running locally. The following guide is the installation option most recommended by Strapi.
Preparing the installation
The installation requires the following software to be already installed on your computer:
- Node.js: only LTS versions are supported (v14 and v16). Other versions of Node.js may not be compatible with the latest release of Strapi. The 16.x version is most recommended by Strapi.
- npm (v6 only) or yarn to run the CLI installation scripts.
- Python when using a SQLite database
A database is also required for any Strapi project. Strapi currently supports the following databases:
Strapi v4 does not support MongoDB.
Creating a Strapi project
The following installation guide covers the most basic installation option using the CLI. There are however other options that can be used when creating a new Strapi project:
- Using the
--quickstartflag at the end of the command to directly create the project in quickstart mode.
- Using the
--typescriptflag (or the shorter version
--ts) at the end of the command to create a project in TypeScript.
- Using the
--no-runflag will prevent Strapi from automatically starting the server (useful in combination with
For more information on available flags, see our CLI documentation.
Strapi also offers a starters CLI to create a project with a pre-made frontend application (see our dedicated blog post).
In a terminal, run the following command:
yarn create strapi-app my-project
npx create-strapi-app@latest my-project
Choose an installation type:
Quickstart (recommended), which uses the default database (SQLite)
Custom (manual settings), which allows to choose your preferred database
(Custom installation type only) Among the list of databases, choose a database for your Strapi project.
(Custom installation type only) Name your project's database.
Experimental Strapi versions are released every Tuesday through Saturday at midnight GMT. You can create a new Strapi application based on the latest experimental release using
Please use these experimental builds at your own risk. It is not recommended to use them in production.
To start the Strapi application, run the following command in the project folder:
npm run develop