mirror of
https://gh.wpcy.net/https://github.com/wp-cli/handbook.git
synced 2026-04-27 16:19:28 +08:00
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.
27 lines
579 B
Markdown
27 lines
579 B
Markdown
# 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.
|
|
```
|