This is a beta release of documentation for Magento 2.4, published for previewing soon-to-be-released functionality. Content in this version is subject to change. Links to the v2.4 code base may not properly resolve until the code is officially released.
You must install Elasticsearch before installing Magento Commerce or Magento Open Source 2.4.0. See Elasticsearch for details.

Reinstall the Magento software

A contributing developer reinstalls Magento by updating composer.json to specify the Magento product version and component versions desired and runs composer update.

To reinstall the Magento software as a contributing developer:

  1. Log in to your Magento server as a user with permissions to modify files in the Magento file system (for example, the switch to the Magento file system owner.
  2. Make a backup copy of composer.json in your Magento installation directory:

    1
    
    cd <magento_root>
    
    1
    
    cp composer.json composer.json.bak
    
  3. Open composer.json in a text editor.
  4. Locate the following line:

    1
    2
    3
    
    "require": {
          "magento/product-community-edition": "<version>"
    },
    
  5. Replace <version> with the version to which you want to upgrade, where <version> is the product version to use.

    (The product version is in the format 2.0.x)

.

  1. Save your changes to composer.json and exit the text editor.
  2. Enter the following command:

    1
    
    composer update
    

    Wait for dependencies to update.

  3. Install the Magento software.