Skip to main content
Version: Next

Updating Thelia

Update components

Update Thelia and its dependencies:

composer update thelia/thelia

For a specific version:

composer require thelia/thelia:^3.1

Update the database

After updating, apply database migrations:

php Thelia thelia:install

This command applies database schema updates, new migrations, and any required data updates.

Update assets

Rebuild front-office assets after updates:

npm install
npm run build

Clear the cache

Always clear the cache after an update:

php Thelia cache:clear

Updating modules

Update modules separately:

composer update thelia/module-name

After module updates:

php Thelia module:refresh
php Thelia cache:clear

Recommendations

  1. Back up your database before updating.
  2. Test updates on a staging environment first.
  3. Review the changelog for breaking changes.
  4. Update only modules that are compatible with your Thelia version.