Herzlich willkommen

How to update extensions for Magento 2

Created at: 25 Oct 2017 | Updated at: 1 Mar 2021

Depending on how you initially installed the extension there are two update paths.

If you installed the extension by copying the .zip file contents to the app directory

Make sure you have SSH/SFTP access to copy the extension files to your Magento installation.

  1. Put the store in maintenance mode, by running this command from your installation root directory:
    bin/magento maintenance:enable
  2. Upload the extension directory “app” to your Magento root directory (“app”⇒“app”) and overwrite any existing files.
  3. After the upload, run the following commands:
    bin/magento setup:upgrade
    bin/magento setup:di:compile
    bin/magento setup:static-content:deploy
    bin/magento maintenance:disable

Done!

If you have installed the extension with composer

  1. Put the store in maintenance mode, by running this command from your installation root directory:
    bin/magento maintenance:enable
  2. Type composer update [package-name-from-composer.json]For example composer update geissweb/module-euvat
  3. After the composer command completed, run these commands:
    bin/magento setup:upgrade
    bin/magento setup:di:compile
    bin/magento setup:static-content:deploy
    bin/magento maintenance:disable

Done!

Categories: Magento 2