4

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?

10

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).

3

How do I install a Connect 2.0 extension to my local development box without using the /downloader UI?

Check out http://freegento.com/ddl-magento-extension.php

It allows you to download modules directly using extension keys (1.0 or 2.0). Then move the module files into place.

  • 2
    Yeah - I've seen that. While it's interesting, part of me gets nervous that I'm downloading production code from an unknown site. I (perhaps falsely) feel safer having downloaded and installed directly from Magento Connect or via the downloader ui. – philwinkle May 6 '13 at 17:56
  • mm... good point ;) – kevnk May 7 '13 at 19:10
1

You can use ./mage which is in your directory root eg:(/var/www/). Give access to mage by entering following command:

sudo chmod 775 mage

Get a magento connect key from the website and install it using the following example. Example magento connect key: http://connect20.magentocommerce.com/community/PACKAGENAME

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

1

Better variant than the one proposed by kevnk is to use https://www.magentokey.com/

It allows you all same things as freegento, but also you can download any version of extension. You will also get links directly from magentocommerce.com, so it's safer.

  • Welcome to Magento.SE! Thanks for your answer. Just a quick heads-up this is a 4-year-old question; and the question specifically requested SSH capability, this answer doesn't add any value. Further, self-promotion is generally frowned upon - if this is your domain or your product you should disclose it when answering. Please proceed with caution. – philwinkle Aug 8 '17 at 2:50

protected by philwinkle Aug 8 '17 at 2:50

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.