WordPress WP-CLI 2 · Updates and maintenance
Turn on maintenance mode
Show the maintenance page to visitors while you work.
wp maintenance-mode activate
Official WordPress WP-CLI 2 documentation
More updates and maintenance commands
- Update WordPress
- Run database updates
- Check core files for tampering
- Check plugin files
- Turn off maintenance mode
- Run PHP in WordPress
All updates and maintenance commands · WordPress WP-CLI 2 cheatsheet