How to find the Magento version

July 11th, 2012

Warning: This post is 11 years old. Some of this information may be out of date.

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();