deploy:mode:set
Sets the application mode: developer, default, or production.
Synopsis
bin/magento deploy:mode:setExamples
Switch to developer mode — verbose errors, no caching of generated code.
bin/magento deploy:mode:set developerSwitch to production mode — runs di:compile + static-content:deploy.
bin/magento deploy:mode:set productionSee also
Related commands in deploy
Other deploy:* commands you might want next.
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.