How to check Magento mode

check Magento mode

You can check Magento mode by running following command in Git Bash:

php bin/magento deploy:mode:show

Whether above code show the mode and if you don’t have any idea about what are these modes and what those modes describes it highly recommend to scroll down to see all modes in Magento. it is better if you can get an idea about why there are more Magento modes. Basically Magento comes with four (04) different types of modes.

Namely:

  1. default
  2. developer
  3. production
  4. maintenance

default mode

Single server deployment enables by default Magento mode. No settings changed by default. Also this mode is not optimized for the production.

developer mode

This mode designed for development purpose only. Developer environment has been made for this user mode.

production mode

This is for deployment of a project in a production system.

Maintenance mode

Maintenance mode prevent access to the site while website is updating or configuring.

These are the list of modes and its short description to understand what are the modes of Magento.

Even you can change the current user mode.

How to change Magento mode

We need to switch current mode as per the requirement. When developing we need to use developer mode. When upgrading to maintenance¬† it is better to switch to maintenance mode. This allows you to do your task clearly and effectively. Here you’ll learn two methods to achieve this.

Method 01: Using Git Bash commands

In this method you just need to run this commend using git bash. Once this code runs you’ll see the current mode showing.

php bin/magento deploy:mode:set developer

Method 02: Via editing files

You can achieve the same using by following steps:

  1. Goto app/etc/ and open env.php
  2. and change current application mode by MAGE_MODE' => 'default' to MAGE_MODE' => 'developer'
  3. Clear the cache

Hope you enjoyed this short tutorial regarding check Magento mode. Keep learning and happy learning ahead. We have provided some solutions for the frequently asked questions in Magento. You can browse some of our quick solutions about Magento 2.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *