Magento2 Upgrade current installation using command line

Hello In this wiki i will show you how to upgrade magento to  (CC 2.3.4) version by Command line

Please follow these steps 

direct use of composer.phar

 

php composer.phar require magento/product-community-edition 2.3.4 --no-update

php composer.phar  update

 

with only composer

composer require magento/product-community-edition 2.3.4 --no-update
composer update  

php bin/magento setup:upgrade
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:di:compile
php bin/magento indexer:reindex

 

Specify additional packages when upgrading from 2.2.x => 2.3.x

composer require --dev allure-framework/allure-phpunit:~1.2.0 friendsofphp/php-cs-fixer:~2.14.0 lusitanian/oauth:~0.8.10 magento/magento-coding-standard:~3.0.0 magento/magento2-functional-testing-framework:2.4.5 pdepend/pdepend:2.5.2 phpmd/phpmd:@stable phpunit/phpunit:~6.5.0 sebastian/phpcpd:~3.0.0 squizlabs/php_codesniffer:~3.4.0 --sort-packages --no-update

 

Remove unused packages when upgrading from 2.2.x => 2.3.x

composer remove --dev sjparkinson/static-review fabpot/php-cs-fixer --no-update

 

Example - Security patch

composer require magento/product-community-edition=2.3.3-p1 --no-update

 

File : composer.phar