How to find the Magento version

Posted by Andrew McCombe on Wed Jul 11, 2012

Often you will need to know which version of Magento you are running in order to install an extension or apply a security patch. Heres how to find the Magento version you are running.

< ?php
include 'app/Mage.php';
echo 'Magento version is: ', Mage::getVersion();

Alternatively, from the command line you can use:

cd public_html
/public_html$ php -a
Interactive shell

php > include 'app/Mage.php';
php > echo Mage::getVersion();
php >exit();