How to check the current mode in Magento 2.x
Login to your terminal and move to your Magento root directory. Execute below command.
php bin/magento deploy:mode:show
There are 3 modes default, developer and production. Use developer during your development phase and don’t forget to switch to production mode when going to live. For switching between modes use below command.
bin/magento deploy:mode:set developer
Updated : 27 May 24