Magento 2 can be simply upgraded, if new actual version is specified in composer.json in both fields version and

[‘require’][‘magento/product-community-edition’] or 


and then to execute command

composer update.

This command will download new core files, but it will fail, if system requirements aren’t satisfied. Composer checks PHP version, that is installed for CLI mode and all required PHP libraries and won’t upgrade Magento, if PHP version is incompatible or there is no required PHP library. Also this command will asks keys, that should be generated on side and it won’t download Magento EE, if it hasn’t been purchased by account, that keys assigned to.

After download new version these commands should be executed

bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy 

Often execute permissions should be set to file bin/magento after upgrade.

4.91 / 5.0
Article rating (11 Reviews)
Do you find this article useful? Please, let us know your opinion and rate the post!
Not badGoodVery GoodGreatAwesome