A complete plugin audit in one command sequence. Shows the installed version, the latest available version, and the update status. Prerequisites: WP-CLI must be installed on your server. Verify with: wp –info Installation guide: https://wp-cli.org/#installing Know your WordPress root path This is the folder that contains wp-config.php. Typically: /var/www/html, /var/www/yourdomain, or /home/user/public_html Verify with: wp […]
Revisions silently bloat the database on content-heavy sites. Safe to run – revisions are regenerated automatically as you edit. Steps to use: Run the first command to see the count Run the delete command – –force bypasses the trash (revisions can’t be trashed anyway) Run the count again to confirm it returns 0 Note: If […]
Faster than opening phpMyAdmin when you need to check or debug a specific wp_options value. Usage: Replace the option name with whatever you’re looking for. The –search flag accepts * wildcards – useful when you don’t know the exact option name a plugin uses. Use wp option update carefully – some options are serialized and […]
Fastest admin recovery method when locked out and email isn’t working. Usage: Use username, email, or user ID – all three work with wp user update
The first command to run when you SSH into an unfamiliar WordPress site. wp –info is the fastest orientation command – shows PHP path, WP-CLI version, WordPress root, and config location all at once. wp core check-update tells you if WordPress itself is outdated before you touch anything The wp eval commands surface the PHP […]
WP-CLI can verify your WordPress core files against the official checksums: If files have been modified or added unexpectedly, this can help identify potential issues. 💡 Particularly useful during WordPress security investigations.
Use this simple WP-CLI command: wp db size –tables It shows the size of your WordPress database along with the size of individual tables. This is especially useful when troubleshooting slow sites, large databases, or before migrating a WordPress website. To see just the total database size: wp db size A simple command that can […]
Downloads and installs the latest version of WordPress using WP-CLI. Requirements Linux/macOS PHP MySQL WP-CLI installed Usage chmod +x install-wordpress.sh ./install-wordpress.sh
Use this WP-CLI command to send a test email from your WordPress site and verify that the wp_mail() function is working correctly.