How to Enable and check Developer Mode in Magento2 - magento source24

How to Enable and check Developer Mode in Magento2 - magento source24


How to Enable and check Developer Mode in Magento2 - magento source24


In this blog post im share with you to How to Enable and check Developer Mode in Magento2 - In this post im given two command to Enable and check Developer Mode of your magento project.


  1. Log in to your store and navigate to project root of your store.
  2. Clean generated classes and other entities using this coammnd - rm -rf var/di/* var/generation/*
  3. Run this bellow given Switch to developer mode using command

How to Enable and check Developer Mode in Magento2 - magento source24


php bin/magento deploy:mode:set developer


👉 When you change to developer mode | production mode,  clear the contents of following directories:


  1. var/cache
  2. generated/metadata
  3. generated/code
  4. var/view_preprocessed
  5. pub/static


In this case a Exceptions  generated when you are delete .htaccess file in your generated folder, to avoid exceptions better not to .htaccess delete the file


How to Display the current mode of project in magento2.

to check mode of magento2 project run this bellow given command : 


How to Enable and check Developer Mode in Magento2 - magento source24

php bin/magento deploy:mode:show



Deepak Kumar Bind

Success is peace of mind, which is a direct result of self-satisfaction in knowing you made the effort to become the best of which you are capable.

Post a Comment

If you liked this post please do not forget to leave a comment. Thanks

Previous Post Next Post