< Back to Posts

Get Magento version with single SSH command


If you just want to get the Magento version on the command line quickly then change directory to your magento root and try this one liner:

php -r "require 'app/Mage.php'; echo Mage::getVersion();"
                

Let's make something great together!

If you'd like to discuss your next project with us, please feel free to give us a call on 01827 781 311 or press the "Start My Project" button to get in touch for a quick quote.

Start My Project