← lessons

Set developer mode in Magento

Video Lesson: Set developer mode in Magento

Enable developer mode in Magento to speed up your development workflow.

Mark Shust

TEACHER

Mark Shust

Published 3 months ago

Share with colleagues:

Share on X Share on LinkedIn

Lesson Content

When you're developing in Magento, you'll always want developer mode enabled. It's designed specifically for local development environments, and enabling it is required to have a smooth development workflow.

Developer mode enables a few things:

  • Automatic code compilation - Magento needs some files generated, and developer mode does this for you automatically on the fly

  • Detailed logging and more verbose error messages - When debugging code, you’ll want these more detailed logs and error messages to help you find out what’s going on with your buggy code

  • Real-time static file generation - In other modes, CSS and JS files (also called static view files) need to be manually created, but in developer mode they'll be automatically generated as they are needed

You can find your currently enabled application mode by running:

bin/magento deploy:mode:show

Let's enable developer mode by running:

bin/magento deploy:mode:set developer

Important note: Never run developer mode in production! While it's perfect for local dev, it's significantly slower and less secure than production mode, among many other reasons.

Welcome University student! You have extended access.

Learn more about this topic in the Magento 2 Coding Kickstart course:

View course →

Want to learn more about this topic?

It's covered in great detail within the Magento 2 Coding Kickstart course.

View course →
M Bytes Newsletter
Bi-weekly Magento deep-dives

Watch. Read. Apply. One topic every other week.

Fresh bytes every other Thursday. No spam. Unsubscribe anytime.


Join 9,000+ developers learning Magento, one byte at a time.