How to update your Magento 2 version?

In this article, we will explain how to upgrade your Magento 2 version from 2.1.x for 2.1.5 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.1.5 --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

php bin/magento --version

Enjoy Latest version of Magento 2 and its features.

1 Comment

  1. Good blog and right to the point.

Leave a Reply

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