How do I install a Magento extension via command line?

The process of installing a Magento extension via command line is quite easy and can be accomplished quickly. However, you must ensure that you have access to your server via SSH (Secure Shell Access). Please follow the step-by-step directions outlined below:

  • Login to your cPanel web hosting account via SSH
  • Next, you’ll need to run the following command:
    • # ./pear Magento-extension-key-here
  • Please adjust the outlined items in BOLD to their real values
  • One such example can be seen below:
    • ./pear install magento-community/magento_classic_blog
      downloading magento_classic_blog-2.4.5.7.tgz ...
      Starting to download magento_classic_blog-2.4.5.7.tgz (9,324,987 bytes) .......................done: 9,324,987 bytes
      install ok: channel://connect.magentocommerce.com/community/magento_classic_blog-2.4.5.7.tgz

Should you have any additional questions pertaining to Magento hosting, please feel free to get in contact with ourĀ web hosting support team for additional assistance and guidance.