Skip to content

Instantly share code, notes, and snippets.

@thagxt
Created August 31, 2016 11:36
Show Gist options
  • Save thagxt/7cb4f8b06bbf1cb214e434ce9f47f522 to your computer and use it in GitHub Desktop.
Save thagxt/7cb4f8b06bbf1cb214e434ce9f47f522 to your computer and use it in GitHub Desktop.
Magento 2 > Upgrade to next version via composer
composer require magento/product-community-edition 2.1.1 --no-update
composer update
rm -rf var/di var/generation
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
/* What above does */
// updates composer.json with the version you want to upgrade to
composer require magento/product-community-edition 2.1.1 --no-update
// makes composer start the upgrade process
composer update
// clears compiled files, caches and reindexes the system
rm -rf var/di var/generation
php bin/magento cache:clean
php bin/magento cache:flush
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento indexer:reindex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment