How to Check the Magento Version?

Avatar image of Maarten Maarten
November 7, 2022
Magento is a well-known platform for e-commerce, the most popularly used in the world. It has grown to be the synonym of an eCommerce solution. 

Magento is a well-known platform for e-commerce, the most popularly used in the world. It has grown to be the synonym of an eCommerce solution. 

Magento has been updated over time, and users have to stay updated with the changes in the latest versions. So, it is very important to keep a check of your Magento version.

Here, we’ve listed eight ways to check your Magento version.

Check Magento Admin Dashboard


It is a simple method to check the Magento version without leaving the site. Simply log in to your Admin Panel and scroll down to the bottom to check the Magento version.

You can find the installed Magento version as shown below:

Magento 1:

DEkfc1lcmuSWpjCMrXHmOxpQ4liT7X1sZQl4nXdkZ5MLD2YA7ut7O58T6rt6MT7rKpuUZ038 p3FbAraawV3U0ELzJmULbqsoBp4h C4vXLSD1BXKGj0ThFJUP4XCbfSrW8h9lbWrRTT2D2OPnCaiiRrtHGB22oQme2ELzMlSYmeR cADeiS7TtsC7K

Magento 2:

G3ZyM nvuE2PSWR1gb6GMB37QT grOn 6O7GHvXxv6UHu1 FrIDlurRexczQIc3wFQBfR7KL5uIEeayvo Uu XizJBkCROQn3negJoMiLIX7g5brzyw4y mIFOz268wNLijav32fEk8FOzDo79q3dbduaaIDldJg

In Magento V2, if you’ve reformed the dashboard, go to System > Web Setup Wizard > System Upgrade. Enter the private and public keys to check your Magento version.

MQuC2 ylzd nurHRvG ltFJigcLk3D9YyVPXq010S7qkUZaWJCIoDwgjdMFeswqGYSXhDQ5L 1XY1JZSPJm5fpy0NLwMRV1ejGVMXrsKfvr2BJuiUWiZDR7RyKlWgKTwEISR1Ea9bowuhngYK7n 0T2Fbfa3C71EV DxEnhfj3ccNgf

Check composer.json file ( Only for Magento 2)


You can check your Magento 2 version in the root composer.json file, as shown in line #5 in the example

Example,

{
    "name": "magento/magento2ce",
    "description": "Magento 2 (Open Source)",
    "type": "project",
    "version": "2.2.6-dev",
    "license": [
        "OSL-3.0",
        "AFL-3.0"
    ],

    …

Check Composer.lock file ( Only for Magento 2)


You can check your Magento 2 version in the root composer.json file, as shown in line #3 in the example

Example,

{
  "name": "magento/magento2-base",
  "version": "2.3.1",
  "dist": {
    "type": "zip",
    "url": "https://repo.magento.com/archives/magento/magento2-base/magento-magento2-base-2.3.1.0.zip",
    "reference": null,
    "shasum": "7877828bb63a7cfca5c62c6c6caf6a9c05ab154b"
  }
}

Check via Command line( Only for Magento 2)


Run the below command to check the Magento version:

php bin/Magento --version

Run the below command to check if your Magento version is enterprise or community edition:

composer licenses | grep Name:

Use the Chrome extension


You can use two extensions to check your Magento version in chrome.

Wappalyzer: Check if your store is on Magento 1 or Magento 2

Tu8JnRvMES6CiVJJgxLCVBorlMTAiYAaEFaxLYXWAKjoaT4vpgUYf93uzv7LLfv oHD0Fg yqke4e843QD 89U05oQ2c8I3ybN8wMQBh xPDN7

Version check for Magento: This one is a paid tool for checking your Magento version.

Check using PHP code


For version 1

Mage::getVersion() //will return the magento version

For version 2.0.X

echo \Magento\Framework\AppInterface::VERSION;

For version 2.1.x to 2.3.x

  1. Using DI
public function __construct( \Magento\Framework\App\ProductMetadataInterface $productMetadata ) { 
    $this->productMetadata = $productMetadata; 
} 
public function getMagentoVersion() { 
    return $this->productMetadata->getVersion(); 
}
  1. Using Object Manager
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); 
$productMetadata = $objectManager->get('Magento\Framework\App\ProductMetadataInterface'); 
echo $productMetadata->getVersion();

Using Online tools to check Magento Version


Magento Version Checking Tool: Use this tool to check your Magento Version using URL

0roTg3gSNF3FDzTUgkmP7zuG18EhIQlXbBajoQneXlYIBNswHpumd0 jSfPOI36EorJvotHSrCd0lrx twEOGgRuDEiXwhArlJPr2R506PTy8eyB3x9Mhm616Y u2Y8VYrBJAgn0C7azWtZgT7vpnceFnMZSirXFBe4Xrnhc

Check from the URL


Simply add /magento_version after your store URL to check your Magento Version.

xksltDPnk23dXjag0Xw88eln0OhAswEwLA pYNZ8otF34AR1OaZQIiuIIYQGeY6Nh7dAe UQbXNQamx5ui2MIzjBeOous4yHE exK2 TvX39XRC12P34foEVEJK5S UuQz8 8xK8Jyo5fMLi5ntK9NXeLQINDKjD0zC 2dpmc2HVmXZ6wh2JPYHeSEj

It is very important to keep updating your Magento version as it comes with security updates and the latest features to help you grow your E-Commerce store. 

We hope these methods will help you check your latest Magento versions.

Industry news straight to your inbox

Get the latest commerce news, trends, and strategies to grow your business
Subscribe to the newsletter
By submitting this form, you agree to receive promotional messages from Magstack. Unsubscribe any time by clicking the link in our emails.
Select location and language

Contact Our Sales Team

Learn more about our products, features, and pricing options.
By submitting this form, you agree to receive promotional messages from Shopify about its products and services. You can unsubscribe at any time by clicking on the link at the bottom of our emails.
Product
Pricing
Use cases
Recourses
Documentation
Log in
Start a free trial