How to disable maintenance mode in magento 2 by using command line

You can disable maintenance mode in magento 2 by using command line:

php bin/magento maintenance:disable

Sees more details this command line by using the command line help or option -h:

php bin/magento maintenance:disable -h
php bin/magento help maintenance:disable

Usage:
maintenance:disable [–ip=”…”] [–magento-init-params=”…”]

Options:
–ip Allowed IP addresses (use ‘none’ to clear allowed IP list) (multiple values allowed)
–magento-init-params Add to any command to customize Magento initialization parameters
For example: “MAGE_MODE=developer&MAGE_DIRS[base][path]=/var/www/example.com&MAGE_DIRS[cache][path]=/var/tmp/cache”
–help (-h) Display this help message
–quiet (-q) Do not output any message
–verbose (-v|vv|vvv) Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
–version (-V) Display this application version
–ansi Force ANSI output
–no-ansi Disable ANSI output
–no-interaction (-n) Do not ask any interactive question

Add Comment

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