Skip to content

Instantly share code, notes, and snippets.

@rafaelstz
Last active October 25, 2016 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rafaelstz/92fa704372647ec2134da18d0faa9edf to your computer and use it in GitHub Desktop.
Save rafaelstz/92fa704372647ec2134da18d0faa9edf to your computer and use it in GitHub Desktop.
Upgrade Magento 2

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

composer require magento/product-community-edition 2.1.2 –no-update

Note: As 2.1.2 is the latest version, these numbers can be changed accordingly.

composer update

Note: It will ask for repo.magento.com authentication keys. For more information, visit this link.

rm -rf var/di var/generation

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento cache:clean

php bin/magento cache:flush

php bin/magento indexer:reindex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment