Home Blog

wp-cli

  • WordPress REST API: Testing & Debugging

    A REST error tells you where the request stopped. â‘  Route exists? 404 restnoroute â‘¡ Args valid? 400 restinvalidparam â‘¢ Permission? 401 or 403 rest_forbidden â‘£ Your callback:…

  • WP-CLI Cache: “clear the cache”, which one?

    WP-CLI Cache: “clear the cache”, which one?

    “Clear the cache” is not one action. Object cache: wp cache type tells you what’s behind it (Redis, Memcached, default). wp cache flush clears it, but the page…

  • WP-CLI Users: who are your administrators?

    WP-CLI Users: who are your administrators?

    Who are your administrators? Ask the database, not the dashboard. wp user list –role=administrator –fields=ID,userlogin,userregistered Three admins registered within three seconds at 3 a.m. After a compromise, wp-admin…

  • WP-CLI Database: export first, –dry-run second

    WP-CLI Database: export first, –dry-run second

    The database has no Undo. So every database block starts with an export. The classic trap: an AI assistant suggests one quick SQL query to change the domain.…

  • WP-CLI Themes: active, parent, fallback

    WP-CLI Themes: active, parent, fallback

    A theme is often two themes. Know which one is live. wp theme list shows it: the child is “active”, the theme it builds on is “parent”. Theme…

  • WP-CLI Core: the power is in the sequence

    WP-CLI Core: the power is in the sequence

    wp core has only ten subcommands. Alone, each one does little. The power is in the sequence. Next release? Test it on staging first: wp core download –version=nightly…

  • WP-CLI Plugins: sequences save sites

    WP-CLI Plugins: sequences save sites

    Plugins break sites. Sequences save them. See everything first: wp plugin list, then only what needs updates. A safe plugin update is one block: Update. Recover. Verify. wp-admin…

  • Why WP-CLI

    Why WP-CLI

    wp-admin shows you WordPress. WP-CLI runs it. Everything wp-admin does, and what it can’t: search-replace with a dry run, a database export, a password reset without email, cron…

  • Deploy a New WordPress Site

    Deploy a New WordPress Site

    Complete a full WordPress installation from scratch using WP-CLI. Follow the steps in the correct order — each command builds on the previous one.