Magento – Install extension using composer Magento 2

composermagento2

I'm using magento 2 , and I'm trying to install an extension from composer.json file , now I've installed composer through SSH , but I'm new to composer installations , how do I proceed now with the installation ?

Best Answer

Follow below steps to install magento2 extension (2.1.7)

cd <your Magento install dir>
composer require <component-name>:<version> --no-update
composer update
bin/magento setup:upgrade
bin/magento setup:di:compile

Source: http://devdocs.magento.com/guides/v2.1/cloud/howtos/install-components.html

Related Topic