How to check with a console whether a store is in the developer or production mode?


(Dmitry Fedyuk) #1
bin/magento deploy:mode:show

How to enable the developer mode?
How to switch a store from the developer mode to production?
How to programmatically check whether Magento 2 runs in the developer mode
Why is not the static content generated automatically despite my store is in the «developer» mode?
How to workaround a «Segmentation failt» failure on «bin/magento setup:di:compile»?
(Dmitry Fedyuk) #2

See also:

(Dmitry Fedyuk) #3

Another way:

grep -E "MAGE_MODE" app/etc/env.php