PHP 7.3 reached end of support in December 2021 and Adobe Commerce 2.3.x reaches end of support in September 2022. You may want to consider planning your upgrade now to Adobe Commerce 2.4.x and PHP 7.4.x to help maintain PCI compliance.

Update the Commerce application

This topic discusses how a contributing developer can update Magento 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 are a contributing developer:

  1. Log in to your Magento server as, or switch to, the file system owner.
  2. Save any changes you made to composer.json because the following steps will overwrite it:

    cd <magento_root>
    cp composer.json composer.json.old
  3. Update your local repository to get the latest code:

    git pull origin develop

    If git pull origin develop fails, see troubleshooting.

  4. Diff and merge your composer.json.old with composer.json installed with the Magento software.
  5. Enter the following command:

    composer update
  6. Update the Magento database:

    <magento_root>/bin/magento setup:upgrade
  7. Clean the cache:

    bin/magento cache:clean