# 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 CLI installation guide requires at least two software prerequisites to be already installed on your computer:
- Node.js (opens new window): only LTS versions are supported (version 12.x minimum). Other versions of Node.js may not be compatible with the latest release of Strapi. The 14.x version is most recommended by Strapi.
- npm (opens new window) (version 6.x minimum) or yarn (opens new window) to run the CLI installation scripts.
A database is also required for any Strapi project. Strapi currently supports the following databases:
鉁 CAUTION
Starting from the release of Strapi v4, MongoDB is not supported natively anymore and no connector is available. For more information, please refer to the official communication on the topic (opens new window).
Database | Minimum version |
---|---|
SQLite | 3 |
PostgreSQL | 10 |
MySQL | 5.6 |
MariaDB | 10.1 |
MongoDB | 3.6 |
# Creating a Strapi project
馃 CLI installation options
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
--quickstart
flag at the end of the command to directly create the project in quickstart mode. - Using the
--template
flag at the end of the command to create a project with pre-made Strapi configurations (see Templates).
Strapi also offers a starters CLI to create a project with a pre-made frontend application (see our dedicated blog post (opens new window)).
- In a terminal, run the following command:
Choose an installation type:
Quickstart (recommended)
, which uses the default database (SQLite)Custom (manual settings)
, which allows to choose your preferred database
When terminal asks
Would you like to use a template?
, typey
for yes orn
for no then press Enter.(Templates only) Among the list of use cases, choose one for your Strapi project.
(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.
# Running Strapi
To start the Strapi application, run the following command in the project folder: