How To Upgrade Magento 2

How To Upgrade Magento 2

One can upgrade magento 2 using the two basic methods, these two methods are discussed following. One of them is upgrading by use of admin panel as describe below.

Upgrade from the Magento 2 Admin:

You need to follow the steps below for upgrade by using admin panel.

  1. Log in to the Magento Admin as an administrator.
  2. Click System > Tools > Web Setup Wizard. …
  3. Click System Configuration.
  4. If you haven’t already done so, enter your authentication keys in the provided fields. …
  5. Click Save Config.
  6. Click System Upgrade. …
  7. Continue with Step 1.

Upgrade Magento 2 using admin panel

Upgrade Using Composer:

Following command are need to run if you want to upgrade magento 2 using composer.

  • First of all connect ssh using any command line utility
  • composer require magento/product-community-edition 2.0.5 –no-update
  • composer update
  • rm -rf var/di var/generation
  • php bin/magento cache:flush
  • php bin/magento setup:upgrade
  • php bin/magento setup:di:compile
  • php bin/magento indexer:reindex

Once all above commands will be successfully  run, you can check your latest magento 2 version by following commands.

php bin/magento –version

(Visited 61 times, 1 visits today)