WordPress WP-CLI 2 · Updates and maintenance
Open an interactive PHP shell
Start a shell with WordPress loaded for trying out functions.
wp shell
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 on maintenance mode
- Turn off maintenance mode
All updates and maintenance commands · WordPress WP-CLI 2 cheatsheet