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 ?
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
For Composer installation see here official Site of composer.
After installation it, You can install Magento 2 extensions with Composer: add an extension's package to the root
composer.json and then do
composer update and
bin/magento setup:upgrade. Now clear the cache
This is the sample how to install the Adm Developer Toolbar using the composer.
composer require vpietri/adm-quickdevbar && php bin/magento --clear-static-content module:enable ADM_QuickDevBar && php bin/magento setup:upgrade