WP-CLI Cheat Sheet for Emergencies and Maintenance
The WP-CLI commands that get a broken WordPress site back: core and plugin checksums, safe-mode flags, user rescue, database repair, search-replace, cron, cache and remote aliases.
Reference
Dense technical reference for the commands, codes and settings you reach for in an emergency: WP-CLI, HTTP status codes, DNS, OpenSSL, SMTP bounce codes, server rules and more. Every placeholder is in CAPITALS and explained. Print them, bookmark them, keep them open.
The WP-CLI commands that get a broken WordPress site back: core and plugin checksums, safe-mode flags, user rescue, database repair, search-replace, cron, cache and remote aliases.
Every HTTP status code a site owner meets, from 1xx to 5xx plus Nginx and Cloudflare extras, with the likely WordPress or hosting cause, the first thing to check and the SEO impact.
DNS record types and their rules, dig syntax and output decoded, how TTL and propagation really work, nslookup and PowerShell equivalents, and how to flush DNS on every OS and browser.
OpenSSL commands for SSL emergencies: test a live server with s_client, read certificates, verify chains, match keys to certs, create CSRs with SANs, convert formats and debug with curl and certbot.
Decode email bounces: SMTP reply codes, enhanced status codes like 5.1.1 and 5.7.26, Gmail and Microsoft rejection phrases, SPF, DKIM and DMARC results, Received headers and a manual SMTP test.
Every wp-config.php constant that matters in an emergency or a tune-up: debugging, URLs, memory, cron, security, updates, database and multisite, each with its default, an example and the risk.
Copy-ready Apache .htaccess and Nginx rules for WordPress: rewrites, one-hop HTTPS redirects, 301s, security headers, caching, compression, CORS, IP rules, staging auth and upload limits.
curl commands for debugging websites: headers, redirect chains, timing breakdowns, testing a new server before DNS changes, compression, HTTP/2 and HTTP/3, POST and JSON, plus PowerShell equivalents.
Connect, inspect, clean and repair a WordPress database: the core table map, diagnostic queries, safe password and URL fixes, slow query logging, mysqldump flags, utf8mb4 and InnoDB.
The Linux commands site owners need over SSH: find and grep files, check disk and inodes, back up and migrate with tar and rsync, fix permissions, read logs, analyze traffic, set up keys and cron.
Core Web Vitals thresholds and what moves them, supporting metrics, Cache-Control directives, validators and Vary, Cloudflare cache statuses, resource hints, responsive images and font-display.
Every common security header with a baseline value and WordPress caveats, from HSTS and CSP to cookies and cross-origin policies, plus a hardening checklist and the security.txt format.
Find PHP logs, PHP settings, backups, phpMyAdmin, cron, SSL, DNS, email routing and redirects in cPanel, Plesk, DirectAdmin and Enhance, with the SSH equivalent for each task.
Server names, ports, encryption and sign-in method for Gmail, Google Workspace, Microsoft 365, Outlook.com, iCloud, Zoho, Fastmail, Proton Bridge and cPanel, Plesk and Enhance hosting mail.
Every PHP directive that matters for WordPress, with defaults, the symptom when it is too low, where each one can be set, and how to change it in cPanel, Plesk, DirectAdmin, Enhance and .user.ini.
The Cloudflare settings that affect WordPress on one page: SSL/TLS modes, default caching and Cache Rules, APO, Rocket Loader, the security features, 1xxx codes and the headers that show what happened.
What happens to a domain from registration to deletion, what every EPP status code means, the transfer rules and locks, and which dispute route fits: TDRP, UDRP, URS, ICANN Compliance or the courts.
Open DevTools in Chrome, Edge, Firefox and Safari, read the Network status column, spot console errors, hard reload past the cache, clear site data and copy a request as cURL for your host.
The image sizes, tags and file formats for Facebook, LinkedIn and X link previews, plus the small modern favicon set (ico, SVG, apple-touch-icon, manifest icons) and how to test each.
Search the field manual
Or jump straight to a symptom
Press / to search from any page, Esc to close