handbook/how-to-maintenance-mode.md
Fabio Pacifici 759efd16bf Separate how-tos into dedicated pages.
Extracted each how-to from the how-to.md file and placed into dedicated pages.

Created how-to-create-custom-plugins.md, how-to-install.md, how-to-maintenance-mode.md,
and how-to-start-webserver.md files.
2020-06-17 22:20:12 +01:00

579 B

How to put the site in maintenance mode

WP-CLI offers a command to enable, disable maintenance mode and check if maintenance mode is enabled or not.

Step 1 - Check the status

    $ wp maintenance-mode status
    Maintenance mode is not active.

Step 2 - Enable maintenance mode

    $ wp maintenance-mode activate
    Enabling Maintenance mode...
    Success: Activated Maintenance mode.

Step 3 - Disable maintenance mode

    $ wp maintenance-mode deactivate
    Disabling Maintenance mode...
    Success: Deactivated Maintenance mode.