Although most Magento modules have their own installation requirements and they should be referred to primarily, here is just a quick overview of some basic steps that you may need to undertake.
Installing a Module via composer
Using Adyen as an example, to install the module, you simply login on the command line and navigate to the root directory of Magento and issue the following command.
composer require adyen/module-payment
Enable the Module
bin/magento module:enable Adyen_Payment
Please also refer to notes below on “Additional tasks that maybe required”.
Execute the update scripts
bin/magento setup:upgrade
Flush cache:
bin/magento cache:flush
Please also refer to notes below on “Additional tasks that maybe required”.
Upgrading a Specific module
More often than not you will want to update a specific module from a vendor. The command to do this is (replace “adyen/module-payment” with the actual vendor/module names 😉 ):
composer update adyen/module-payment
Then run setup scripts again:
php bin/magento setup:upgrade
Please also refer to notes below on “Additional tasks that maybe required”.
Upgrading all modules from a vendor
To update all vendors modules that you have installed then issue this command (again replace “amasty” with the vendors name 😉 ) :
composer update amasty
Followed by set up scripts again:
php bin/magento setup:upgrade
Please also refer to notes below on “Additional tasks that maybe required”.
Additional Tasks that may be required
Although you need to refer to the specific module docs, you may need to also run these additional tasks
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
bin/magento cache:flush
Final thoughts..
Whilst the above I’m using Adyen and Amasty as the examples, that is not the complete installation process for these Modules. Should you be trying to do a full installation then please refer to the full documentation here (Install Adyen via Composer). (Upgrade Amasty Modules)
Also another great more comprehensive article can be found here: