Wednesday 11 October 2017

How to upgrade Magento 2

Hi as magento 2 is still in a development phase and there are continuous releases are comming.
So we must have update Magento 2 timely for being safe and updated with all the features.
 
Fortunately upgrading Magento 2 is really very starlight forward and easy to do 
To upgrade Magenbto 2 we can use composer and below are the commads we need to 
run to upgrade magento to our desired version.
  
In this i am upgrading to magento 2.0.2  and you can change the version according to your needs 
 
composer require magento/product-community-edition 2.0.2 --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
 
After upgrade, check your Magento version with the following command:

php bin/magento --version
 
 
 

2 comments:

  1. Great article! I'm also looking forward to seeing more businesses Hire Magento Developers to create Custom Magento Solutions tailored to their needs. Looking forward to seeing what the future of eCommerce holds!

    ReplyDelete
  2. Experience seamless e-commerce growth with our expert Magento e-commerce development services. We tailor solutions to optimize your online store's performance and boost sales.

    ReplyDelete