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
- Back up your database before updating.
- Test updates on a staging environment first.
- Review the changelog for breaking changes.
- Update only modules that are compatible with your Thelia version.