Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Find current installed magento version from command line  (Read 4439 times)

0 Members and 1 Guest are viewing this topic.

akhileshp

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Find current installed magento version from command line
« on: March 18, 2017, 08:28:13 pm »
To Get the current Magento version string using getVersion function inside the Mage.php file.

Run the following command in terminal
php -r "include 'app/Mage.php'; echo 'Magento version is: ', Mage::getVersion(); "


For example:

#cd /home/cp_user/public_html/
# php -r "include 'app/Mage.php'; echo 'Magento version is: ', Mage::getVersion(); "
Magento version is: 1.9.2.2
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!