Skip to main content

Upgrading to Strapi 5: Introduction and FAQ

The latest major version of Strapi is Strapi 5, which is currently provided as a Release Candidate (RC) version, not as a stable version yet.

The present page lists all available resources for upgrading from Strapi 4 to Strapi 5 and answers general questions you might have.

❗️ Warning: Strapi 5 is not stable yet

It is strongly advised not to upgrade a critical or production-ready project from Strapi v4 to Strapi 5.

The content of migration resources might not be final yet. Migration resources are currently only provided to prepare you for the upgrade to Strapi 5 when it is released as a stable version.

Strapi 5 is currently only provided as a Release Candidate (RC) version and is not meant to be used in production yet.

Available resources

All of the following available resources will help you upgrade your application and plugins to Strapi 5, from the most common to the most specific use cases:

Frequently asked questions

The following questions and their answers should help you cover the most common use cases:

How can I handle the upgrade and the installation of the latest dependencies? How can I handle the breaking changes in the code and adapt my code to Strapi 5?

Strapi provides a tool, the upgrade tool. The upgrade tool is a command line tool with some commands that handle the upgrade of the dependencies and the execution of codemods .

Follow the step-by-step guide to learn how to use this tool in the context of upgrading to Strapi 5.

Strapi 5 docs also provide a complete breaking changes database and dedicated resources to cover specific use cases.

How can I handle the data migration, ensuring that in Strapi 5 the application will still be working?

Strapi 5 integrates a data migration script that is run once the application starts for the first time in Strapi 5.

However, please always backup your database file (found at .tmp/data.db by default if using a SQL database) before performing any upgrade, as instructed in the step-by-step guide.

As a Strapi Cloud customer, how can I handle the entire upgrade and deployment of my Strapi 5 application?
❗️ Warning: Don't push a Strapi 5 project to Strapi Cloud yet

Strapi Cloud is still running on Strapi v4. The following process is provided as an indication of what will happen when Strapi 5 is released as a stable version. Do not try to push your Strapi 5 beta or Release Candidate (RC) project to Strapi Cloud yet.

  1. Create a backup and update your code locally, following the step-by-step guide.
  2. Run the yarn deploy or npm run deploy commands from the Cloud CLI.
    (⚠️ This command is currently only available to push Strapi v4 projects to Strapi Cloud. The current link to Cloud CLI documentation points to Strapi v4 stable documentation, not to Strapi 5 RC documentation.)

Strapi Cloud will deploy the updated code in Strapi 5 and will automatically run the data migration script.