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:
- Create backups for Magento 2.2.x
- Enable maintenance mode:
php bin/magento maintenance:enable
- Checkout to 2.3.x version via Git or require/remove needed packages with composer
- Update composer with
composer update
- Clean cache with
php bin/magento cache:clean
- Remove all cache, generated files with
rm -rf var/cache/* var/page_cache/* var/generation/*
- Upgrade database schema with
php bin/magento setup:upgrade
- Disable maintenance mode by
php bin/magento maintenance:disable
Magento updated.