Monday, December 12, 2016

Update Magento 2 From 2.0.0 to 2.0.2

In this blog I am going to mention how to update Magento 2.0 from 2.0.0 to 2.0.2 This procedure you can follow for future updates as well.



There are two ways to do this. If you don't like to work with command line tools, then you can upgrade Magento from System Upgrade in admin.

Login to Magento Admin and Go to

System > Tools > Web Setup Wizard

Here there is an option "System Upgrade"


Select that option and follow through wizard. For more information check following link.



Other way to upgrade is with command lines which I like the most as it's just matter of typing some commands and your Magento is upgraded.

Go to terminal and go to your Magento root directory and run following commands.

composer require magento/product-community-edition 2.0.2 --no-update
composer update

This will update your Magento. After update do some clean up and indexing with following set of commands.

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

And you have updated Magento 2 version.

No comments:

Post a Comment