When making large changes to your WordPress site, you might find the need to enable maintenance mode. In this article, we'll show you how to enable or disable maintenance mode with WP-CLI.
Activating Maintenance Mode
To activate maintenance mode on your site, navigate to the root directory of your WordPress installation and issue the following command:
pagely-wp maintenance-mode activate
Deactivating Maintenance Mode
When you're ready to deactivate maintenance mode, just use the following command from within your WordPress site's root directory:
pagely-wp maintenance-mode deactivate