How to upgrade Magento from 2.2 to 2.3 version with command line

  • Post author:
  • Post category:Magento 2

In this article I will tell you how to upgrade Magento from 2.2 to 2.3 with command line. I will checkout Magento version not with composer but with Git. But knowing the main flow you will upgrade Magento via composer without a problem. Here are the needed steps:

  1. Create backups for Magento 2.2.x
  2. Enable maintenance mode: php bin/magento maintenance:enable
  3. Checkout to 2.3.x version via Git or require/remove needed packages with composer
  4. Update composer with composer update
  5. Clean cache with php bin/magento cache:clean
  6. Remove all cache, generated files with rm -rf var/cache/* var/page_cache/* var/generation/*
  7. Upgrade database schema with php bin/magento setup:upgrade
  8. Disable maintenance mode by php bin/magento maintenance:disable

Magento updated.