You are updating a Magento Commerce Cloud project from version 2.2.5 to 2.3.0 with the command
composer require magento/product-enterprise-edition:2.3.0
However, composer is unable to complete the task because the installed version of magento/magento-cloud-metapackage is not compatible. How do you upgrade Magento to the desired version?
- Create a new project based on magento/project-enterprise-edition:2.3.0, then add ece-tools, custom modules and themes again with composer and migrate the data
- Run composer require magento/magento-cloud-metapackage:">=2.3.0 <2.3.1" --update-with-dependencies
- Revert the composer.json to the last commit before the update and run the command again with the --with-dependencies argument
- Remove magento/product-enterprise-edition from the root composer.json requirements and run composer update
Answer(s): C
Reference:
https://devdocs.magento.com/cloud/project/ece-tools-upgrade-project.html
Reveal Solution
Next Question