How to install a Magento extension through the command line?

If you have SSH access to your web hosting account, you can easily install a Magento extension through the command line.

To do it, open an SSH connection to your account and enter the following command:

./pear install Magento_extension_key

In the above command line replace Magento_extension_key with the exact key for the chosen extension.

In the following example we show you how to install a classic theme extension through the command line:

./pear install magento-community/magento_classic_theme_free
downloading magento_classic_theme_free-1.4.1.2.tgz ...
Starting to download magento_classic_theme_free-1.4.1.2.tgz (3,687,973 bytes)
.......................done: 3,687,973 bytes
install ok: channel://connect.magentocommerce.com/community/magento_classic_theme_free-1.4.1.2

You need help with a shopping cart? SiteGround is specialized in eCommerce hosting and provides expert support for a large number of shopping carts. Check out our shopping cart hosting services!