Twenty major version upgrade: what changes

Twenty's documented upgrade is a backup, a TAG change in .env and a restart, with migrations running on startup. The prerequisites that decide whether it goes smoothly are the PostgreSQL version and the ENCRYPTION_KEY, and the project documents no rollback path.

On this page

Twenty major version upgrade: what the documented path asks of you

The documented Twenty upgrade is short: take a backup with pg_dumpall, change the TAG value in .env, and restart with Docker Compose, with migrations running automatically on server startup. The decisions that matter are your starting version, your PostgreSQL version and your ENCRYPTION_KEY. Your starting version sets the route. From v1.23 or later, you can jump straight to the latest release. Older instances must move one major step at a time until they reach v1.23, so an install well behind current is a staged project with a verification window at each stage. Read the upgrade guide against your exact current version before you draw up the stages.

PostgreSQL and encryption are the two settings that most affect the plan. From v2.34, Twenty requires PostgreSQL 15 or newer, and the official Compose file uses PostgreSQL 16. If you run an external database, the upgrade guide says to upgrade it first, so schedule that change ahead of the Twenty change. On encryption, v2.5 re-encrypts secrets on first boot. Set ENCRYPTION_KEY before the upgrade, because switching keys later requires a rotation. Twenty's pricing page lists encryption key rotation among the Organization and Enterprise plan features, so confirm whether your edition includes the rotation path before you depend on it.

Confirm the current release before you plan. The GitHub releases page shows v2.65.0, published 2026-11-27, as the latest release, but Twenty ships frequently: v2.48.0 was released on October 16, 2026, one day after v2.47.0. A version you noted a few weeks ago may already be superseded, so re-check the releases page on the day you schedule the work. Ask Twenty in writing which release lines receive security fixes and when support ends, and do not plan against a support window until you have that answer. Record the answer in the project file next to your target version.

Which Twenty versions set upgrade conditions, and what their support status is

This table lists each Twenty version or threshold that changes how you upgrade, with its documented condition and support status. Read the condition column before choosing a starting point, because older instances must move through one major version at a time until v1.23. No end-of-life date is documented for any release line, so confirm the support window with Twenty before you plan an upgrade.

Version or thresholdUpgrade conditionSupport status
v2.65.0 (latest release)Latest release, published 2026-11-27. It is the target of a direct jump from v1.23 or later.No end-of-life date is documented for this release line. Confirm the support window with Twenty.
v1.23Direct jump to the latest release is allowed from v1.23 or later. Older instances upgrade one major step at a time until v1.23.Marks the earliest point for a direct jump. No end-of-life date is documented; confirm with Twenty.
v2.5Re-encrypts secrets on first boot. Set ENCRYPTION_KEY before upgrading, since switching keys later requires a rotation.No end-of-life date is documented for this release line. Confirm the support window with Twenty.
v2.34Requires PostgreSQL 15 or newer (the official Compose file uses 16). Upgrade external databases first.No end-of-life date is documented for this release line. Confirm the support window with Twenty.
v2.48.0 (October 16, 2026)Dated reference for release cadence. It sets no upgrade condition of its own.No support boundary is documented. Ask Twenty how long each release line receives fixes.

The documented upgrade path, step by step

The documented sequence moves a self-hosted Twenty instance from its current release to a target version in a fixed order: confirm the starting point, protect the encryption key and database, change the image tag, then confirm that migrations completed on startup. The steps below are the documented ones, but verify each one against the upgrade guide for your exact target version before you run it.

  1. Confirm the running version and upgrade path

    Before changing anything, confirm the version the instance runs. Check the TAG value in the .env file and the image the containers actually use, for example with docker compose images. If the instance is on v1.23 or later, the upgrade guide allows a jump straight to the latest release. If it is older than v1.23, it must step through each major release until it reaches v1.23, reading the guide at every stage. Done when the current version and the full list of target versions are written down and agreed by the team.

  2. Set ENCRYPTION_KEY before upgrading

    The administrator sets ENCRYPTION_KEY in the environment file before moving to v2.5 or later. The upgrade guide says the first boot on v2.5 re-encrypts stored secrets, so the key must be in place before that boot. Switching keys later requires a rotation, which is a separate piece of work. Keep a recoverable copy in your secrets store, so the same key is available if you need to restore the database from the backup taken in the backup step. Done when the variable is set in the running configuration and the key is recorded where the team can recover it.

  3. Upgrade an external PostgreSQL database first

    If the database runs outside the Compose stack, the database administrator upgrades it to PostgreSQL 15 or newer before the Twenty upgrade reaches v2.34 or later. The official Compose file uses PostgreSQL 16, so that is the reference version to compare against. Check the server version with a query such as SHOW server_version; from a session connected to the database. Upgrading the database engine is its own change, so run it under its own backup and change record before the application moves. Done when the query returns 15 or higher and the application still connects.

  4. Back up the database with pg_dumpall

    Before changing any image tag, the administrator runs pg_dumpall against the database server and writes the output to storage outside the host being upgraded. The dump covers every database in the cluster, including the Twenty database. Check that the file exists, is not empty and carries the time of this run. Confirm in the upgrade guide whether this backup should be taken before or after the database upgrade, since it should match the state you would roll back to. Done when the backup is stored off the host, a restore test has been planned, and the team has recorded its name and size.

  5. Change TAG to the target release

    The administrator edits the TAG value in the .env file so it names the exact target release listed in the upgrade guide, then saves the file. Pinning an exact version keeps the image from changing unexpectedly on a later pull. Keep a copy of the previous .env file, since restoring the old TAG is part of any rollback. Done when the file shows the intended version and the copy of the previous file is stored with the backup.

  6. Restart the stack with Docker Compose

    The administrator pulls the new images and restarts the stack from the directory that holds the Compose file, for example with docker compose pull followed by docker compose up -d. The stack includes a server, a worker, PostgreSQL and Redis in the official setup. Confirm that the server and worker are running, along with every other service the stack defines. Done when docker compose ps lists each expected service as running and no process is restarting, which also confirms the host still meets the guide's minimum of 2 GB of RAM.

  7. Confirm migrations ran on startup

    Twenty runs migrations automatically on server startup, so no separate migration command is part of the sequence. Read the server logs from the startup window for migration output and errors, then open the application and confirm it loads with the target version. If a migration fails, stop, keep the backup and the previous .env file in place, and check the upgrade guide for the recovery path before retrying. Done when the logs show the migrations completed without errors and a user can sign in and see existing records.

Which documented changes can stop an upgrade and what each one affects

Five documented changes can stop or delay a Twenty upgrade, and each one lands on a different part of an installation. The common thread is timing: secrets, database versions, install age, startup behavior and deployment method all need a check before you change the image tag. Work through the cards that match your setup first, then build your backup and test steps around them.

Set ENCRYPTION_KEY before upgrading

Every instance that stores secrets is affected. The upgrade guide says v2.5 re-encrypts stored secrets on first boot, so set ENCRYPTION_KEY before you change the image tag. Moving to a different key later requires a key rotation, and Twenty's pricing page lists encryption key rotation for the Organization and Enterprise plans, so confirm your plan covers it. Before the change, check that the key is in your .env file and keep a copy outside the server, because encrypted values cannot be read without it.

Upgrade guide

PostgreSQL 15 minimum from v2.34

Instances that run their own database server are affected. From v2.34, Twenty requires PostgreSQL 15 or newer, and the official Compose file uses PostgreSQL 16, so a Compose install with the bundled database already meets the minimum. An external database is different: upgrade an external database first, before you move Twenty to a release that needs it. Before the change, run SHOW server_version; on that server and plan the database upgrade as its own step with a separate backup.

Compose self-hosting guide

One step at a time before v1.23

Long-running installs are affected. Instances older than v1.23 cannot jump straight to the latest release. The upgrade guide says they must move one major step at a time until v1.23, while v1.23 and later can go directly to the newest release. Before you start, note the version in your TAG setting, then map each intermediate step with its own backup and test window. Installs that skipped several releases will need the most planning.

Upgrade guide

Automatic migrations on startup

Anyone who expects to run schema changes by hand is affected. The upgrade guide says migrations run automatically on server startup, so restarting the containers after you change TAG applies them. Agree on who approves that restart before the change window opens, and confirm that you have a pg_dumpall backup to restore from. On the first start, read the server logs to confirm the migrations completed before you open the instance to users.

Community-maintained Kubernetes and Podman

Installs that do not use Docker Compose are affected. Twenty's Kubernetes README says the Kubernetes and Podman deployments are community-maintained, while the core team maintains support for Docker deployment. The Helm chart in packages/twenty-docker/helm/twenty supersedes the older raw manifests, so a cluster still built from those manifests should move to the chart first. Before you plan the upgrade, confirm who supports your deployment and whether the chart version you choose covers the target release.

Twenty repository

How to plan a Twenty major version upgrade for each deployment

This is the path the core team documents most directly. The Compose file runs the Twenty server, a worker, PostgreSQL and Redis on one host, so one backup and one TAG change cover the whole instance. Read the upgrade guide first and confirm the PostgreSQL version in your file, because v2.34 and later require PostgreSQL 15 or newer and the official file uses 16.

  • Backup before the TAG change: Run pg_dumpall against the bundled database and store the output off the host being upgraded. Also copy .env, including ENCRYPTION_KEY, because v2.5 re-encrypts secrets on first boot and switching keys later requires a rotation.
  • Staging copy: Restore the dump onto a second host running the current TAG, then test the target release there. Migrations run automatically on server startup, so read the logs through the full run.
  • Integration and API checks: List every webhook, API client, workflow and custom object or field defined as code, then exercise each one on staging. Include the GraphQL and REST calls used by reporting or middleware.
  • Rollback point: Name the dump file and the previous TAG as the rollback set, and confirm with Twenty whether that restore is the supported path once migrations have run.

Before the production window, confirm the host meets the documented minimum of 2 GB of RAM and that the worker drains its queue after the staging run.

What rollback looks like when no downgrade path is documented

The only rollback step the Twenty upgrade guide documents is the backup. Before you change TAG in .env, take a pg_dumpall backup of the Twenty PostgreSQL database and store it outside the host that runs the containers. The guide does not describe a downgrade procedure, and it does not describe how to restore a dump taken before an upgrade into a running instance. Treat the dump as proof that your data can be recovered, not as proof that you can return to the previous release. Before the change, record the current image tag, the full .env file and the PostgreSQL version, so you know exactly what a rollback would have to match. Ask Twenty to confirm in writing whether restoring this dump into the previous tag is supported for your version.

The encryption key is the input most likely to break a restore. The upgrade guide says v2.5 re-encrypts secrets on first boot and that switching keys later requires a rotation, so ENCRYPTION_KEY must be set before the first upgrade and kept for the life of the data. Store the key in your secrets manager alongside each backup, and make sure every restore pairs a dump with the key that was active when it was taken. A database can restore cleanly at the table level and still leave stored credentials or integration secrets unreadable if the key does not match. Ask Twenty how the key relates to any data created before v2.5 and whether any other secret material needs to be backed up with the database.

The harder case is a rollback after the first boot of a newer release. Migrations run automatically on server startup, so the schema may already have changed before anyone sees a problem. Changing the image tag back to the older release then runs an application against a schema it was not built for, and the guide does not say whether that is supported. For v2.34 and later, PostgreSQL 15 or newer is required and external databases must be upgraded first, so a database engine upgrade is another change that an image tag edit does not undo. Rehearse the full restore in staging: restore the dump into a clean PostgreSQL instance, start the previous tag with the matching key and check the result. Only after that rehearsal and Twenty's written confirmation should you treat any production rollback path as available.

The upgrade sequence and the points where you can still roll back

The flowchart shows the documented path for a self-hosted Twenty upgrade, not a full runbook. It starts with checking the running version, since instances from v1.23 or later can jump to the latest release, and with setting ENCRYPTION_KEY before anything changes, because the upgrade re-encrypts secrets on first boot. An external PostgreSQL must be upgraded before moving to v2.34 or later. The first rollback point sits after the pg_dumpall backup and before TAG changes in .env, where restore comes from the backup. The second point comes after the first boot on the new release, where migrations have run. Restoring the pre-upgrade dump is the only documented route there, so confirm that procedure with Twenty before relying on it.

Documented upgrade path with the two rollback points marked.

How to test a Twenty upgrade before it touches production

Rehearse the upgrade on a copy of production data that starts at the same Twenty version as production. Take a pg_dumpall backup as the upgrade guide describes, restore it into a separate PostgreSQL instance, and point a copy of the stack at it. Keep the same ENCRYPTION_KEY in the copy's .env file. The upgrade guide says v2.5 re-encrypts secrets on first boot and that switching keys later requires a rotation, so a different key would make the secret handling you test differ from the one you run live. Match the PostgreSQL major version too. From v2.34, Twenty requires PostgreSQL 15 or newer, the official Compose file uses 16, and an external database must be upgraded first. The upgrade guide sets out the steps for each release.

Migrations run automatically when the server starts, so read the server logs for a clean finish before testing anything else. Then check the copy in six areas. Sign in with accounts from each role and confirm that role-based permissions still allow and block the same records. Run a representative set of workflows and confirm each run completes. Confirm that email and calendar sync resumes for connected mailboxes. Call the GraphQL and REST APIs with the tokens your integrations use and compare the responses with a pre-upgrade baseline. Finally, check that the worker processes jobs through Redis: with the server, worker, PostgreSQL and Redis running as separate services, queue a job and confirm the worker picks it up and finishes it. Record the result of each check.

Time the rehearsal from the start of the backup to the last passed check. The duration depends on data volume and on how many steps your team performs by hand, so measure it on your own copy and use that measurement to plan the production window. Keep the record as change control evidence: the backup file and its checksum, the image tags before and after the change, the migration log, each check with its result, and the restore steps you tested. A successful rehearsal you can repeat is the evidence to attach to the change request. Confirm the restore procedure with your database team, since rollback depends on your own backup tooling and hosting environment.

What a Twenty major version upgrade costs and what it needs from your team

What makes a Twenty upgrade cost more or less?

The main drivers are how many major steps the instance must cross, how much PostgreSQL work sits outside the Compose stack, and how much testing your customizations need. Each factor changes the written scope, so ask for a quote that names them.

  • Version distance: instances at v1.23 or later can jump straight to the latest release, while older instances must move through each major step until v1.23.
  • External PostgreSQL: v2.34 and later require PostgreSQL 15 or newer, and external databases must be upgraded first.
  • Customizations: custom objects, fields, workflows and integrations each need regression testing.
  • Staging: a copy of production configuration is needed before any change.

In a fixed-scope engagement, the agreed scope sets the quote. Your own staff time and staging infrastructure are costs you carry either way.

Can our team upgrade Twenty on Docker Compose without outside help?

Yes, if your team has PostgreSQL and Docker skills and has already tested a restore. The documented Docker Compose path is short: back up with pg_dumpall, change TAG in .env, restart with docker compose, and let migrations run automatically on server startup. Because the steps are few, most of the effort sits in the backup, the rehearsal and the checks afterward. Rehearse the full sequence on a copy of production first, and confirm the new version's PostgreSQL requirement before you start. Instances on Kubernetes or Podman, or those using external databases, need more planning. Read the Twenty upgrade guide before you schedule the change.

What does an upgrade need from our internal team?

Your team must supply access, storage, a decision owner and a place to test. Confirm these four needs before any engagement starts:

  • Access to the .env file and the database host, including the credentials needed for pg_dumpall.
  • Backup storage with enough room for a full dump taken before the TAG change.
  • A named owner who signs off the schedule, the scope and the go or no-go decision.
  • A staging environment that matches production configuration, including the same ENCRYPTION_KEY.

Record the current ENCRYPTION_KEY before upgrading. Version 2.5 re-encrypts secrets on first boot, and switching keys later requires a rotation. Testing and sign-off time recur with each major release, so ask any outside provider which of these tasks they take on and which stay with your team.

When should we hire outside help for a Twenty upgrade?

Hire outside help when the instance falls into a higher-risk case. Consider a partner if:

  • The instance is older than v1.23 and must move through each major step.
  • It runs on Kubernetes or Podman, which are maintained by the community and sit outside the core team's Docker support.
  • It uses an external database that must be upgraded before the application.
  • It holds sensitive data that needs tighter access and backup controls.
  • Your audit or customer reviews will ask for evidence of the change.

DeployOpen plans, implements and documents these upgrades inside your own infrastructure, and prepares the systems and evidence an assessment will ask for. It does not issue audit reports or certifications, which independent auditors and certification bodies handle. Ask any provider which steps they perform and which remain with you.

Can a retainer cover ongoing Twenty upgrades?

Yes. Ongoing upgrades, support and continuous testing are available as retainers, so your team can follow each release instead of planning one large change. Twenty ships frequently, and its latest release at the time of writing is v2.65.0, published on November 27, 2026, per Twenty's GitHub releases. Before you sign, ask what a retainer includes: which releases it covers, whether staging and backup checks are part of it, how custom objects and integrations are retested, and how requests are prioritized. Retainer terms are set in writing, so compare them against your own release cadence and the number of environments you run.

Can we roll back a failed Twenty upgrade?

Rollback depends on the backup and the restore test you ran beforehand. The documented sequence takes a pg_dumpall backup before you change TAG in .env, and migrations run automatically when the server starts, so the database changes on first boot. Keep the backup, the previous image tag and the current ENCRYPTION_KEY together, because version 2.5 re-encrypts secrets on first boot. Confirm in Twenty's upgrade guide whether the version you are leaving supports a downgrade, since the documented path does not settle that question for you. Before the production change, restore the backup into a separate environment, start the old tag there, and check that users, workflows and integrations behave as expected.

Does upgrading the free self-hosted Twenty core carry a license fee?

No Twenty license fee applies to the open-source core, since Twenty's pricing page says the core can be self-hosted for free. Your costs are staff time, staging infrastructure, backup storage and any outside scope. Check the license position before you upgrade if you use paid features. SSO, row-level permissions, audit logs and encryption key rotation are listed for the Organization and Enterprise plans, and SCIM provisioning and IP allow-listing are listed for Enterprise. Files marked with an Enterprise license header are under a commercial license, so confirm with Twenty which code your instance runs before you plan the change. Review the Twenty pricing page for current plan terms.

How DeployOpen plans and runs a Twenty upgrade

A Twenty major upgrade touches the database, secrets, container tags and the Docker or Kubernetes deployment, so we start with your current version and the target release before changing anything. DeployOpen plans the path, builds a tested runbook inside your own infrastructure, and hands over documentation and a rollback procedure your team can run.

How we scope

  • We confirm your current Twenty version and whether the database is external.
  • The written scope names the source version, target release and any required intermediate steps.
  • Engagements are fixed-scope, so scope, deliverables and timelines are agreed in writing before work starts.

How we build

  • We upgrade any external PostgreSQL first, since v2.34 and later require PostgreSQL 15 or newer.
  • Before crossing v2.5, we confirm ENCRYPTION_KEY is set, because secrets are re-encrypted on first boot.
  • We take a pg_dumpall backup and confirm it restores before changing TAG in .env.

How we hand over

  • We document the runbook with the exact order of backup, TAG change in .env, and restart with docker compose.
  • The rollback procedure is written down and tested before go-live, including restoring the pg_dumpall backup.
  • Your team receives the configuration, the upgrade record and the post-upgrade checks it can repeat.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers for the next release cycle.
  • Twenty's Docker deployment is the one the core team supports; Kubernetes and Podman are community-maintained.
  • Ask us to confirm which release tags your retainer covers and how upgrades are scheduled.

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.