wp maintenance-mode

EXAMPLES EXAMPLES

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

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

# Display Maintenance mode status.
$ wp maintenance-mode status
Maintenance mode is active.

# Get Maintenance mode status for scripting purpose.
$ wp maintenance-mode is-active
$ echo $?
1

Top ↑

SUBCOMMANDS SUBCOMMANDS

Name Description
wp maintenance-mode activate

Activates maintenance mode.

wp maintenance-mode deactivate

Deactivates maintenance mode.

wp maintenance-mode is-active

Detects maintenance mode status.

wp maintenance-mode status

Displays maintenance mode status.