Shopping cart

How to Set Developer mode / Product Mode in Magento 2

In this tutorial, we will talk about How to Set Developer mode / Product Mode in Magento 2 in Command Line Series. As you know, from Magento 2, they add many commands in bin/magento. This may difficult to get approach this , let me explain more detail about it.

Table of content

How to set Magento Developer mode or Product Mode

Show current Magento 2 Mode

php bin/magento deploy:mode:show

Result:

$ php bin/magento deploy:mode:show
Current application mode: default. (Note: Environment variables may override this value.)

Currently, we are in default mode. We can set to developer mode

Set developer mode

You are a developer or just want to change to developer mode, just run the following command line in Magento root folder:

php bin/magento deploy:mode:set developer

Result:

$ php bin/magento deploy:mode:set developer
Enabled developer mode.

Congrats! Now your store is running in Developer mode. Happy coding ;)





Enjoyed the tutorial? Spread it to your friends!

magento-2-module-development
command
line
cli
console
indexer
reindex

Brian Tran
Brian Tran
Senior Magento Developer who is passionate about development and love technology

Comments for How to Set Developer mode / Product Mode in Magento 2

Please leave comments if you have any questions, feedbacks.

Module Development

We recommend: