how to change the mode in magntp 2 command line code example
Example: change to production mode magento 2
bin/magento deploy:mode:show
bin/magento deploy:mode:set production
bin/magento deploy:mode:show
bin/magento deploy:mode:set production