How to find the Magento version

July 11, 2012

Image for How to find the Magento version from unsplash.com

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();
1.6.2.0
php >exit();