Skip to main content

Project deployment with the Command Line Interface (CLI)

This is a step-by-step guide for deploying your project on Strapi Cloud for the first time, using the Command Line Interface.

☑️ Prerequisites

Before you can deploy your Strapi application on Strapi Cloud using the Command Line Interface, you need to have the following prerequisites:

  • Be a first-time Strapi Cloud user: you must never have deployed a project with Strapi Cloud before, and your free trial must still be available.
  • Have a Google, GitHub or GitLab account.
  • Have an already created Strapi project, stored locally. The project must be less than 100MB.
  • Have available storage in your hard drive where the temporary folder of your operating system is stored.

Logging in to Strapi Cloud

  1. Open your terminal.

  2. Navigate to the folder of your Strapi project, stored locally on your computer.

  3. Enter the following command to log into Strapi Cloud:

yarn strapi login
  1. In the browser window that opens automatically, choose whether to login via Google, GitHub or GitLab. The window should confirm the successful login soon after.

Deploying your project

  1. Still from your terminal and still from the folder of your Strapi project, enter the following command to deploy the project:
yarn strapi deploy
  1. Follow the progression bar in the terminal until confirmation that the project was successfully deployed with Strapi Cloud.

⏩ What to do next?

Now that you have deployed your project via the Command Line Interface, we encourage you to explore the following ideas to have an even more complete Strapi Cloud experience: