layout | group | subgroup | title | menu_title | menu_order | menu_node | version | github_link | redirect_from |
---|---|---|---|---|---|---|---|---|---|
default |
install_cli |
99_contrib |
Update the Magento application |
Update the Magento application |
2 |
2.0 |
install-gde/install/cli/dev_update-magento.md |
/guides/v2.0/install-gde/install/cli/instgde-install-magento-update-db |
This topic discusses how a contributing developer can update the Magento application without reinstalling it. To perform an upgrade if you're not a contributing developer, see Updating the Magento application and components.
To update the Magento software if you're a contributing developer:
-
Log in to your Magento server as, or switch to, the Magento file system owner.
-
Save any changes you made to
composer.json
because the following steps will overwrite it:cd <your Magento install dir> cp composer.json composer.json.old
-
Update your local repository to get the latest code:
git pull origin develop
If
git pull origin develop
fails, see troubleshooting. -
Diff and merge your
composer.json.old
withcomposer.json
installed with the Magento software. -
Enter the following command:
composer update
-
Update the Magento database:
php <your Magento install dir>/bin/magento setup:upgrade
*[contributing developer]: A developer who contributes code to the Magento 2 CE codebase *[contributing developers]: Developers who contribute code to the Magento 2 CE codebase