Upgrading Magento 2 with Composer Without Losing Modules
Upgrading Magento 2 through Composer keeps your third-party modules in place, as long as they support the new version. Always rehearse on staging first.
1. Require the target version
For Community Magento 2 composer require magento/product-community-edition=2.3.6 --no-update For Commerce Magento 2 composer require magento/product-enterprise-edition=2.3.6 --no-update
Adobe Commerce needs an auth.json with your Marketplace access keys.
2. Update dependencies
composer update
3. Upgrade and clear caches
php bin/magento setup:upgrade php bin/magento cache:clean php bin/magento cache:flush php bin/magento indexer:reindex
Then recompile, redeploy static content in production mode and test checkout end to end.
Stuck on something similar? Our Magento development team is happy to take a look.