Magento 2 Modes Explained | Developer & Production Setup
Display the current mode in Magento 2 using CLI/Command Promptbin/magento deploy:mode:showThis will result in something like belowCurrent application mode: {mode}.Set/Change mode in Magento 2 using CLI/Command Promptbin/magento deploy:mode:set {mode}{mode} can be either default, developer, or produc...
Amila Rajapaksha is the CEO and Managing Director of Mobiz International (Pvt) Ltd, a web design and development company based in Gampaha, Sri Lanka. Since 2010 he has helped businesses across Sri Lanka and overseas launch fast, search-friendly websites and online stores — working hands-on with WordPress, Magento and custom Laravel builds, and the SEO that makes them rank.
Display the current mode in Magento 2 using CLI/Command Prompt
bin/magento deploy:mode:show
This will result in something like below
Current application mode: {mode}.Set/Change mode in Magento 2 using CLI/Command Prompt
bin/magento deploy:mode:set {mode}{mode} can be either default, developer, or production. If changing to developer mode, out put will be like below
Related Articles
AI Personalization for WooCommerce | Sri Lankan Retailers Guide
Bridging Continents: The New Frontier for Sri Lankan Retailers
How to Retain Customers in Sri Lanka's Booming Ecommerce Landscape: Proven Strategies for 2026
Discover Sri Lanka-specific strategies to retain ecommerce customers amid a $2.65B market boom. Learn mobile-first tactics, trust-building, and hyperlocal tips for platforms like WooCommerce and Shopify in 2026.
Enable or Disable Magento 2 Maintenance Mode using CLI / Command Prompt or Files
What is the magento maintenance mode ?When Magento is in maintenance mode, visitors see a Service Temporarily Unavailable message in their web browsers instead of the store. However, authorized IP addresses can still view the store normally.You can enable maintenance mode using two methods.How to en...
Magento 2 How to reset admin password using CLI / Command Prompt / Terminal in Linux
Let's see how we can reset Magento 2 admin password in Linux using CLI / command prompt or terminal.Getting the cryptographic saltMagento 2 passwords are stored after scrambling with the cryptographic salt which is defined in the app\etc\env.phpSo first we need to copy that.open the file app\etc\env...