How to check maintenance mode status in magento 2 by using command line

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

php bin/magento maintenance:status

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

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

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

Options:
–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.