I have installed Shopware 6.4.20.0 in my local dev environment using Shopware's new symfony-flex template. Now I want to update my local version to Shopware 6.5.
What is the best way to update my local installation to 6.5, from the commandline and using composer?
Running composer update alone doesn't do the trick, as the shopware/* packages in my composer.json are tight to 6.4.
You need to change the following packages to
~6.5.0under therequirepart of yourcomposer.jsonshopware/coreshopware/storefrontshopware/administrationshopware/elasticsearchAlso under
requireremoveshopware/recovery.Then run
composer updateagain. It may still complain that some packages can't be resolved due to version conflicts. Either try adding--with-all-dependenciesto the command or if that doesn't work manually change the version to the newly required in therequire-devpart. This would likely be thesymfony/*packages that need to be changed to~6.2.0. Then run the update command again until all the version constraints have been satisfied.Afterwards run
composer recipes:update, followed bybin/console system:update:finishto execute the database migrations.