#Install Magento cli glovally
export PATH=$PATH:/var/www/html/magento2/bin
#Enable Disable Maintanance mode
Enable or disable maintenance mode
magento maintenance:enable [--ip=<ip address> ... --ip=<ip address>] | [ip=none]
magento maintenance:disable [--ip=<ip address> ... --ip=<ip address>] | [ip=none]
magento maintenance:status