The Magento application has three modes of operation that make it convenient for you to deploy it in a development or production environment. This information explains what these modes are and how to switch between them. For advanced information, see About Magento modes in DevDocs.
- Default mode - Enables you to deploy the Magento application on a single server without changing any settings. However, default mode is not optimized for production.
- Developer mode - Intended for development. It disables and enables features to support development, customizations, and extensions.
- Production mode - Intended for production with your store and code fully deployed.
Magento Commerce (Cloud) supports production mode only.
Environment and technologies
- Magento Commerce
- Magento Commerce (Cloud)
- Magento Open Source
- Magento installed
- Magento file system owner
Not only do these modes enable you to change Magento application behavior, switching between them using the
magento deploy:mode:set command also sets file system permissions automatically.
To switch modes, you will use CLI commands:
- Log in as, or switch to, the Magento file system owner.
- Change to the
<your Magento install dir>/bindirectory.
- Want to see the current mode? Use this command:
- Use the
magento deploy:mode:setcommand as summarized in the following table.
|Mode||Command||File system permissions|
Directories: 770 (owner and group have full control, all others have no access)
Files: 660 (owner and group have write access, all others have no access)
Directories: 750 (owner has full control, group has read and execute access, all others have no access)
Files: 640 (owner has write access, group has read-only access, all others have no access)