This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW

How to Upgrade Magento 2 via CLI in CloudwaysSeptember 29, 2017

 

In this KB

  • Summary of Magento upgrade strategy
  • How to upgrade from Magento 2.0.x to Magento 2.1.x – 2.2.x

 

In this guide, we will explain how to upgrade your Magento version from Magento 2.0.x to Magento 2.1.x – 2.2.x using Command-Line Interface (CLI). Please keep in mind that this upgrade supports a fresh installation of Magento 2, so it is not recommended to apply this method on your live store. After the upgrade, you can migrate your data from old Magento 2 store to newly upgraded Magento 2.1.x – 2.2.x store.

Step 1: Access Your Server via SSH

You need to connect your server via SSH. You can follow this tutorial on how to connect your server via SSH.

Step 2: Navigate to the Magento 2 Root Directory

Once your SSH connection is up, you will need to move to your target application folder. In that application folder, you will find the public_html folder which is the root directory of Magento 2.

Step 3: Upgrade Commands

Please follow the same order and use the commands listed below:

Note: As 2.2.x is the latest series, these numbers can be changed accordingly.
Note: It will ask for repo.magento.com authentication keys. For more information, visit this link.
Please insert Content
Have Questions? Ask From Our Helpful Community

Comments are closed.

Do you still need help?

Our Technical Support team is always at work.