Skip to content

Instantly share code, notes, and snippets.

@joostvanveen
Created January 25, 2016 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joostvanveen/bb4664b27090473af608 to your computer and use it in GitHub Desktop.
Save joostvanveen/bb4664b27090473af608 to your computer and use it in GitHub Desktop.
Get Magento version number from command line
# Echo Magento version number
cd /path/to/magento/webroot
php -r "include 'app/Mage.php'; echo 'Magento version is: ', Mage::getVersion(); "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment