Magento – Installing Connect 2.0 extensions via SSH

magento-connect

How do I install a Connect 2.0 extension to my local development box without using the /downloader UI? How can I script this in a deployment routine?

Best Answer

Installing via SSH:

Obtain the Connect 2.0 key via Magento Connect:

enter image description here

Ensure that mage is executable from your Magento root:

chmod +x ./mage

Execute ./mage install and paste your extension key immediately after the word 'install' - remove the slash between 'community' and your extension package name. E.g.:

./mage install http://connect20.magentocommerce.com/community OnePica_AvaTax

^ Notice the lack of a slash between 'community' and 'OnePica_AvaTax'.

To script into a deployment - issue the ./mage install command from your build. This should sync all production servers to have record of the community module install which should make removing or upgrading the module in the future scriptable as well (without necessitating a commit to your version control system).

Related Topic