Strapi major version upgrade: what changes

Strapi v4 reached end of life on April 30, 2026, so teams still on v4 need to plan a move to Strapi 5. This page covers the documented upgrade path, breaking changes, testing, rollback and when to bring in outside help.

On this page

What a Strapi major version upgrade changes for your team

Teams still running Strapi v4 are past end of life, so the move is to Strapi 5, the current major version. Strapi v4 reached end of life on April 30, 2026, and its final release, 4.26.2 of June 9, 2026, will receive no further updates, so staying put means running a CMS with no upstream fixes. The upgrade changes more than the version number: the REST response shape, GraphQL identifiers, the data layer, and the database and Node.js versions your stack must meet. Your team owns the consequences. Start by inventorying every front end, mobile app and integration that reads the v4 attributes wrapper or the numeric GraphQL id, because those clients must change in step with the server. The most recent Strapi 5 release in our research is v5.64.0, but Strapi 5 minor releases have shipped roughly weekly, so confirm the current release on the Strapi GitHub releases page before you fix a target version.

The documented path covers v4 to v5 only, so if you run an older major, confirm the route with Strapi before you plan. The upgrade tool, started with npx @strapi/upgrade major, updates dependencies and runs codemods, but codemods will not replace a review of your custom code, so plan that review yourself. Data migrations run automatically on the first start of Strapi 5, and downgrading is not supported, so take a database backup before anything else and keep it until your clients pass testing. Your custom code will also need to move from the Entity Service API to the Document Service API. Check your database against the Strapi 5 list of PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later or SQLite 3, because MongoDB and other NoSQL databases are not supported. Then confirm your Node.js version is on the Active or Maintenance LTS list in the Strapi CLI installation requirements.

Testing and rollback stay with your team. Restore a recent backup into a staging copy, run the upgrade there, and compare v4 and v5 REST responses for your highest-traffic content types. For clients that have not migrated, the Strapi-Response-Format: v4 header keeps the old response shape, so set a removal date for it and keep it only until those clients move. If you use GraphQL, check whether v4CompatibilityMode eases your queries, and confirm its current behavior in the Strapi documentation before you rely on it. Rollback means restoring the database backup together with the v4 code, because Strapi does not support downgrading in place. Agree who signs off each release gate, and record the backup location and restore steps before the production window opens.

Which Strapi versions are supported and when v4 ended

This table lists the Strapi versions, Node.js runtime and database requirements that decide when you must leave v4 and what Strapi 5 needs in place. Read the status column for dates and the last column for what to confirm before you plan. The main takeaway is that v4 is out of support, so the upgrade is a support decision as well as a feature decision.

ItemStatus and datesWhat to confirm or plan for
Strapi v4End of life April 30, 2026. Final release 4.26.2 on June 9, 2026, with no further updates.Any v4 instance still running has no vendor updates. Plan the move to Strapi 5 with a dated cutover.
Strapi 5Current major. Version 5.58.0 released October 14, 2026. Version 5.64.0 published November 25, 2026.Minor releases have shipped roughly weekly. Pin a tested minor version and review release notes before each upgrade.
Node.js runtimeStrapi 5 runs only on Active LTS or Maintenance LTS Node.js versions.Confirm the current LTS list with the Node.js project and recheck it before each upgrade window.
Strapi 5 databasesPostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later, SQLite 3.MongoDB and other NoSQL databases are unsupported. Check your current database version against these minimums.
Migration from v4Data migrations run automatically on the first start of Strapi 5. Downgrading is not supported.Back up the database before starting. Run the Strapi upgrade tool, which applies codemods, then test on a copy.
Later major versionsNo successor major version or its end-of-life date is confirmed in this comparison.Ask Strapi for the roadmap and end-of-life date for any later major before planning a multi-year upgrade.

The documented v4 to v5 upgrade path, step by step

This sequence takes a v4 Strapi project to a running Strapi 5 instance with its data migrated, its code reviewed and its API clients updated. Each step ends with a check that tells you whether it is complete before the next one starts.

  1. Confirm your starting v4 release

    Confirm which v4 release your project runs, then read the breaking changes list and migration FAQ before changing anything. Strapi v4 reached end of life on April 30, 2026, and its final release is 4.26.2 (June 9, 2026), which receives no further updates. Intermediate upgrade hops are not documented here, so confirm in the step-by-step guide whether 4.26.2 must be installed first. Done when you have a written note of your current version, the breaking changes that touch your schema and plugins, and the answer to the hop question.

  2. Check Node.js and database versions

    Compare your runtime and database against what Strapi 5 supports before you install anything. Strapi 5 supports PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3, and it does not support MongoDB or other NoSQL databases. It runs only on Active or Maintenance LTS Node.js versions, so an older Node.js release on a production host has to move first. The Strapi installation requirements list the current support matrix. Ask your platform team who owns the host images and database servers, since they are often patched on a different schedule than the application. Done when every host and database in the upgrade path appears on a signed-off version list.

  3. Back up the database before starting

    Take a full database backup while the v4 instance is stopped or quiesced, and store it outside the upgrade environment. Strapi runs its data migrations automatically on the first startup of Strapi 5, and downgrading is not supported, so restoring this backup is the route back to v4 data. Confirm where uploaded media is stored and back that up too, since the database backup may not cover it. Test a restore on a separate database before the upgrade begins. Done when that test restore has succeeded and the backup location is recorded in your change ticket.

  4. Run the Strapi upgrade tool

    From a version-controlled copy of the project, run npx @strapi/upgrade major. The tool upgrades dependencies and runs codemods that rewrite project code for Strapi 5. Run it on a dedicated branch so every change appears in one diff that a reviewer can read. Keep the full terminal output so you can match each change to a file later. Done when the branch installs its dependencies without errors and the diff is ready for review.

  5. Review codemod output and custom code

    Read every codemod change, then search your custom controllers, services, policies and plugins for calls to the Entity Service API. Strapi 5 replaces it with the Document Service API, and the Entity Service API is deprecated, so any call the codemods leave in place needs a manual rewrite. Check custom code that reads numeric ids or the old response shape as well. Done when your search returns no Entity Service calls in custom code and a second engineer has signed off on the codemod diff.

  6. Start Strapi 5 to run data migrations

    Start the upgraded instance against a copy of the database you backed up, and let the data migration scripts run on this first startup. Watch the startup log for migration errors. If one appears, stop, restore the backup and investigate before trying again. After a clean start, open the admin panel and spot-check entries, relations, media and roles against the v4 instance. Done when startup completes without migration errors and the spot checks match the v4 data.

  7. Update API clients for the new response format

    Update every consumer of the REST and GraphQL APIs. REST responses drop the v4 attributes wrapper, so client code that reads the wrapper must change. The Strapi-Response-Format: v4 header keeps the old shape while clients migrate, which lets you move consumers one at a time. In GraphQL, the numeric id is no longer exposed, so switch to documentId, and v4CompatibilityMode can ease the GraphQL migration. Done when each client's test suite passes against Strapi 5 and no production consumer still sends the v4 header.

Which breaking changes affect your API consumers and code

Six changes touch different people in a Strapi major version upgrade. Front end teams, API consumers, GraphQL clients, backend developers and platform operators each need to check different things, and the database migration is the point of no return.

REST responses drop the attributes wrapper

Strapi 5 returns REST fields without the v4 attributes wrapper, so every front end and API consumer that parses the old nested shape is likely to break after the upgrade. Front end and API consumer teams should list each endpoint and client parser before cutover. The Strapi-Response-Format: v4 header keeps the old shape while clients migrate, which lets you move consumers one at a time. Ask each team to record which clients still send the header, so the compatibility period has a named end.

Upgrade introduction and FAQ

GraphQL drops the numeric id

GraphQL no longer exposes the numeric id, so every query, fragment and filter that uses it has to move to documentId. GraphQL client teams should search their repositories for id references and update each one in a test environment. The v4CompatibilityMode option eases this migration, but confirm it covers every query your clients send before you depend on it in production. Treat the search results as the migration backlog for each client.

Entity Service API is deprecated

Strapi 5 replaces the Entity Service API with the Document Service API, so Entity Service calls in custom services and controllers are now deprecated code. Backend developers should run the upgrade tool's codemods first, then review each remaining call site by hand, since automated rewrites may not match custom logic. Test every custom service against a copy of production data before cutover. Keep a list of rewritten calls for code review.

Step-by-step migration guide

MongoDB and NoSQL stores are out

Strapi 5 runs on MySQL, MariaDB, PostgreSQL and SQLite only, so MongoDB and other NoSQL databases are out. Platform operators on a NoSQL store must move their data to a supported database before they can run Strapi 5. Check the supported versions in the installation requirements, which list PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3, and confirm them against your hosting platform's own versions before choosing a target.

Installation requirements

Node.js must be on LTS

Strapi 5 runs only on Active or Maintenance LTS Node.js versions, so a host on an end-of-life or non-LTS release must be upgraded as part of the project. Platform operators should check the Node.js version on every development, staging and production host, along with CI runners and container base images. Confirm which Node.js lines are currently Active or Maintenance LTS on the day you plan the upgrade, since that list changes over time.

Migrations run on first start

Data migration scripts run automatically on the first start of Strapi 5, and downgrading is not supported. Anyone with a production database should treat that first boot as a one-way change. Take a database backup and confirm it restores before you start Strapi 5 against real data. Rehearse the restore on a copy so recovery steps are known in advance, since rolling back application code alone will not undo migrated data.

How to prepare by team: platform, developers and API consumers

Platform and operations owns the environments, the rollback path and the go or no-go decision. Strapi's documentation says data migrations run automatically on first startup and that downgrading is not supported, so a backup that has never been restored is not a rollback plan.

  • Database backup and tested restore: Back up the database before the upgrade, then restore it into a scratch environment to confirm it loads. This restore is your rollback path.
  • Staging copy with production-like data: Clone production content, media references and the database volume into staging. A schema-only copy will not expose the data problems that the first startup can reveal.
  • Node.js and database version checks: Confirm the Node.js release is Active or Maintenance LTS and that the database meets Strapi 5 minimums: PostgreSQL 14, MySQL 8.0, MariaDB 10.3 or SQLite 3. Strapi 5 does not support MongoDB or other NoSQL databases, so check for those first.
  • Named change owner and change window: Name one person who makes the go or no-go call and owns the rollback decision. Set a window long enough to restore from backup if the staging run fails.
  • Edition check: Audit logs, review workflows and enterprise plugins require the Enterprise plan. Confirm your edition and license before the upgrade, and read the Strapi introduction for what each plan includes.

Before the change window is approved, confirm that the restore test ran against a copy of production data and that the rollback owner has the backup location written down.

Where the upgrade sequence and rollback points sit

This illustrates the documented Strapi v4 to v5 sequence. It is not a DeployOpen procedure. The path starts with a database backup, the rollback point before any change, then runs npx @strapi/upgrade major, a review of codemods and custom code, and a staging test. A failed test returns the team to fixes and back to staging. Once Strapi 5 starts, data migrations run automatically on first start. From that point the backup is the only documented safety net, because downgrading is not supported, so confirm the restore procedure before starting. Update API clients before cutover.

Illustrative sequence of the documented v4 to v5 upgrade, with rollback points marked.

How to test the upgrade and roll back if it fails

Test the upgrade on a copy of production data before anything touches production. Restore a recent production database and media store into staging, run npx @strapi/upgrade major, then start Strapi 5 and work through the checks below. For REST, capture responses from v4 and v5 for each client that reads content, once with the default v5 shape and once with the Strapi-Response-Format: v4 header, then compare them field by field. Frontends and apps should render the same output from both shapes before you remove the header. For GraphQL, run every query that requested id and move it to documentId. Use v4CompatibilityMode as a bridge while those queries are being rewritten.

Custom code is where silent failures tend to hide, so search your repository for calls to the Entity Service API. Strapi 5 replaces it with the Document Service API, so each call in controllers, services, lifecycle hooks and scheduled jobs needs an owner and a decision: port it now or keep it running until you can. Then test the admin panel with every role that edits content: sign in, upload and replace media, and open content history. Content history is available on the Growth and Enterprise plans, and audit logs require Enterprise, so confirm which of these your edition includes before you sign off. If you use SSO, test sign-in through it as well.

The database backup is your rollback plan. Strapi's guidance is to back up the database before the first start, because data migrations run automatically on that start and downgrading is not supported. Store that backup apart from the production database, verify that it restores into a scratch instance, and keep the previous application build and lockfile ready so you can redeploy them alongside the restored data. No further rollback procedure is documented, so ask Strapi how to reverse a failed migration after the first start and which database states they support. Then rehearse the full restore in staging, measure how long it takes with your own data volume, and compare that against your change window. See Strapi's v4 to v5 step-by-step guide for the backup step.

What buyers ask before they upgrade Strapi

How much does a Strapi major version upgrade cost?

Cost is driven mainly by how much of your own code and content the upgrade touches, not by the release number itself. The main cost components are developer time for reviewing custom code and codemod output, the size of your content model, the number of API clients that must change, the number of plugins and whether each one has a v5 path, the Enterprise plan features you rely on, and the number of staging environments you need. Developer time is usually the largest variable, and most of this work is one-time. Ongoing support, upgrades and continuous testing are available as retainers, and those recur. DeployOpen does not publish a price list. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts, so a quote follows from that scope. When you ask for a quote, request a line for each driver above, the assumptions behind each line, and a clear list of what is excluded.

How long does a Strapi v4 to v5 upgrade take?

Duration depends on the same drivers that set cost: custom code and codemod review, content model size, API clients, plugin count, Enterprise features and staging environments. A small schema with few consumers moves faster than a project where many front ends and integrations must change together, but the gap only becomes clear once the scope is written. Strapi v4 reached end of life on April 30, 2026, and its final release, 4.26.2 on June 9, 2026, receives no further updates, so the deadline is a planning input. Ask for a written scope with timelines for each phase: assessment, codemod review, staging tests, client updates and cutover. Most calendars are set by the slowest API consumer rather than by the upgrade tool, so ask who owns each client and when that owner can test.

What does our team need to provide for a Strapi upgrade?

Your team provides the access, environments and decisions that the upgrade cannot make on its own. Confirm these five items before scoping:

  • Database access and a verified backup, because data migrations run automatically on first startup and downgrading is not supported.
  • A staging environment that mirrors production, so codemod output and data migrations can be tested before cutover.
  • Node.js and database versions that Strapi 5 supports: an Active or Maintenance LTS Node.js release, and PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later or SQLite 3.
  • Named owners for each front end and API consumer, who will check the response format and GraphQL changes for their code.
  • A change window agreed with the business, with a restore plan built on that backup.
Can our in-house team upgrade Strapi to v5 without a partner?

Yes, if the team has Node.js, database administration and API testing skills. The upgrade tool, run with npx @strapi/upgrade major, updates dependencies and runs codemods, and the documentation recommends a database backup first. The tool does not review your business logic, such as custom controllers, permission rules or workflow code that depends on the v4 shape. Those checks need someone who knows the product and can test every API consumer. REST responses drop the v4 attributes wrapper, and the Strapi-Response-Format: v4 header keeps the old shape while clients migrate. GraphQL no longer exposes numeric id, so clients should use documentId. A partner is worth considering if your team lacks database or API test capacity, or if the change window is short. Read the Strapi v4 to v5 step-by-step guide before deciding.

Does upgrading Strapi change our license obligations?

Your obligations depend on which code paths and plan you use, and the version number alone does not set them. Code outside the ee directories is provided under the MIT Expat license when you have no Strapi Cloud account. Code in ee directories carries a proprietary Enterprise license under a separate Strapi license. Strapi's documentation says audit logs, review workflows and enterprise plugins require an Enterprise plan, while content history and releases are available in the Growth and Enterprise plans. Check which of these features your current project already uses, because an upgrade does not remove a dependency on a paid feature. Confirm in writing with Strapi which plan applies to your deployment and features, and have your legal team review the terms that apply before the change window.

Does Strapi Cloud change the steps for a v5 upgrade?

Confirm this with Strapi before you plan. Strapi Cloud is Strapi's own hosting, so tasks that sit with your team on a self-hosted project, such as server access, database backups and cutover, may be handled differently there. Ask Strapi in writing which tasks remain yours, who takes backups and whether those backups include the database, which Node.js and database versions apply, how cutover and rollback work, and whether the upgrade tool and data migrations run the same way. Also confirm how the license split applies to a Strapi Cloud account, because the MIT Expat terms for code outside ee directories apply when you have no Strapi Cloud account. Get those answers before you write a scope, since they change who owns each step and what your change window needs to cover.

When to bring in an implementation partner for the upgrade

Bring in an implementation partner before the upgrade starts when any of these conditions applies. First, your project has custom plugins or code under ee/ directories. That code falls under Strapi's proprietary Enterprise license, and Strapi 5 replaces the Entity Service API with the Document Service API, so every custom service that calls the old API needs a migration plan. Second, many REST and GraphQL clients ship on different release cycles. Strapi 5 drops the v4 attributes wrapper from REST responses and no longer exposes numeric id in GraphQL, so documentId becomes the field to use. Each client that reads those fields must be migrated or held on the Strapi-Response-Format: v4 header while it catches up. Inventory every client, its owner and its release schedule before you ask anyone to scope the work.

Third, regulated data raises the bar. If the instance holds regulated records, change control and evidence matter as much as the code: you need a backup record, a log of what the data migrations altered and an approval trail for the cutover. Strapi's upgrade introduction and FAQ advises a database backup because data migrations run automatically on first startup, and downgrading is not supported, so your rollback path is a tested restore. Outside help is also worth scoping if you have no staging environment that mirrors production, or no one who runs Node.js services and production databases. DeployOpen plans, upgrades, tests and documents self-hosted platforms inside your own cloud accounts, data centers or air-gapped networks. It prepares systems and evidence for your assessors, but it does not issue audit reports, attestations or certifications; independent auditors and certification bodies do that.

Before you ask for a quote, write a scope a partner can price. List every content type and component, marking those with relations, media fields or custom lifecycle logic. List every plugin, whether it comes from the Community Edition or an Enterprise ee/ directory, and whether you have modified it. List each API client with the endpoints and GraphQL queries it calls and the response shape it expects. Record your database engine and version: Strapi 5 supports PostgreSQL 14 or later, MySQL 8.0 or later, MariaDB 10.3 or later and SQLite 3, and it does not support MongoDB. Confirm your Node.js release is an Active or Maintenance LTS version, and state your edition, since audit logs and review workflows require an Enterprise plan. A written scope covering content types, plugins, API clients, database and edition is what lets a quote follow from the work.

How DeployOpen plans and runs Strapi upgrades

DeployOpen treats a Strapi major version upgrade as a fixed-scope engagement inside your own infrastructure. The work starts with a written scope that names the Strapi versions, databases, plugins and integrations involved, then moves through a tested upgrade path with documented rollback steps before anything reaches production.

How we scope

  • The written scope names the Strapi v4 source version, the target v5 release and each database in use.
  • Custom controllers, services, plugins and middleware are listed in the scope so each one gets a test.
  • Engagements are fixed-scope, and ongoing support after the upgrade is available as a retainer.

How we build

  • The upgrade tool and its codemods run on a branch, and each change is reviewed before merge.
  • Custom code moves from the Entity Service API to the Document Service API and from numeric id to documentId.
  • Clients still expecting the v4 response shape are served the Strapi-Response-Format: v4 header while they migrate.

How we hand over

  • A database backup is taken before the first Strapi 5 start, since data migrations run automatically on startup.
  • Rollback is documented as a restore from that backup, since Strapi does not support downgrading.
  • Documentation covers the scope, the breaking changes found, test results and the steps your team runs next.

How we support

  • Security testing of the upgraded instance can be scoped separately, including API access controls and admin roles.
  • Later Strapi 5 minor releases, which ship roughly weekly, can be covered by a retainer.
  • Before a quote, ask which deliverables, retests and handover steps are in the written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.