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.
- Put the store in maintenance mode, by running this command from your installation root directory:
bin/magento maintenance:enable
- Upload the extension directory “app” to your Magento root directory (“app”⇒“app”) and overwrite any existing files.
- 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
- Put the store in maintenance mode, by running this command from your installation root directory:
bin/magento maintenance:enable
- Type
composer update [package-name-from-composer.json]
For examplecomposer update geissweb/module-euvat
- 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