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 and configure Elasticsearch 7.6.x before upgrading to Magento Commerce or Magento Open Source 2.4.0. See Check the catalog search engine for details.

Upgrade modules

To update or upgrade a module or extension:

  1. Download the updated file from Marketplace or another extension developer. Take note of the module-name and version.

  2. Export the contents to your Magento root.

  3. If a Composer package exists for the module, run one of the following.

    Update per module name:

    1
    
    composer update vendor/module-name
    

    Update per version:

    1
    
    composer require vendor/module-name ^x.x.x
    
  4. Run the following commands to upgrade, deploy, and clean the cache.

    1
    2
    3
    
    bin/magento setup:upgrade --keep-generated
    bin/magento setup:static-content:deploy
    bin/magento cache:clean