How to upgrade your Magento 2 version?

In this article, You will learn how to upgrade your Magento 2 version from 2.x.x for 2.x.x using Command-Line Interface (CLI). Then upgrade your Magento 2 by following these steps:

1) Access Your Server via SSH
2) Navigate to the Magento 2 Root Directory
3) Upgrade Commands

composer require magento/product-community-edition 2.x.x --no-update
composer update
rm -rf var/di var/generation
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
php bin/magento setup:static-content:deploy

4) Check your Magento version using below command

php bin/magento --version

Now please make sure your Magento 2 version upgraded successfully by loading frontend and backend panel. Enjoy Latest version of Magento 2 and its features.

1 Comment

  1. One can upgrade magento 2 using the two basic methods, one is from admin panel and other is using composer.

Leave a Reply

Your email address will not be published. Required fields are marked *