Switch between Magento mode

Available modes:

  1. default
  2. developer
  3. production

Show current mode:

bin/magento deploy:mode:show

Set to production mode:

bin/magento deploy:mode:set production
bin/magento maintenance:disable

Set to developer mode:

bin/magento maintenance:enable
rm -rf generated/metadata/* generated/code/*
bin/magento deploy:mode:set developer
bin/magento maintenance:disable

Leave a Reply

Your email address will not be published. Required fields are marked *