2

I have magento 2.3.1 CE. I want to upgrade 2.3.1 to 2.3.3 CE with commands only. Does anyone know how to upgrade it with commands ? Thanks in advance.

2

3 Answers 3

2

You can update your magento version using following command

composer require magento/product-community-edition=2.3.3 --no-update

and then

composer update

after composer update finished run setup:upgrade

Ref: Dev docs

1

You can follow this steps

- php bin/magento maintenance:enable
- cp composer.json composer.json.bak
- composer create-project --repository=https://repo.magento.com magento/project-community-edition=2.3.3 temp_dir --no-install
- rm -rf update
- mv temp_dir/update .
- rm -rf temp_dir
- composer update
- php bin/magento cache:clean
- rm -rf var/cache/*
- rm -rf var/page_cache/*
- rm -rf generated/code/*
- php bin/magento setup:upgrade
- php bin/magento maintenance:disable
- service varnish restart

Ref : https://devdocs.magento.com/guides/v2.3/comp-mgr/cli/cli-upgrade.html

10
  • I got error while on step composer update so i wrote like this : $composer update --no-plugins.Still gives error :- Your requirements could not be resolved to an installable set of packages. Problem 1 - magento/inventory-composer-installer 1.0.3 requires composer-plugin-api ^1.1 -> no matching package found. - magento/inventory-composer-installer 1.1.0 requires composer-plugin-api ^1.1 -> no matching package found. - magento/inventory-composer-installer 1.1.0 requires composer-plugin-api ^1.1 -> no matching package found. Commented Oct 16, 2019 at 9:27
  • what error you're getting, can you please share that ? Commented Oct 16, 2019 at 9:28
  • Here whole error is not able to write. I posted some lines of starting in previous comment. Now I am posting last line Potential causes: - A typo in the package name - The package is not available in a stable-enough version according to your minimum-stability setting see <getcomposer.org/doc/04-schema.md#minimum-stability> for more details. Read <getcomposer.org/doc/articles/troubleshooting.md> for further common problems. Commented Oct 16, 2019 at 9:31
  • Do you have any third party extensions installed via composer ? Commented Oct 16, 2019 at 9:31
  • no. Its fresh M231 installation. Commented Oct 16, 2019 at 9:32
1

For Upgrade Magento 2.3.1 to 2.3.3 please follow all below steps.

php bin/magento maintenance:enable
composer require magento/product-community-edition 2.3.3 --no-update
composer update
rm -rf var/di var/generation
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy -f
php bin/magento indexer:reindex
php bin/magento maintenance:disable
php bin/magento cache:clean

Follow all steps,if you face any issue let me know for the same.

9

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.