At my agency, we stopped clicking through the WordPress dashboard a long time ago. When you manage dozens of sites, you can’t afford to log into each one, navigate menus, click buttons, and wait for pages to load. It doesn’t scale.
We use WP-CLI — the command line interface for WordPress. And now, combined with AI, it’s not just an agency tool anymore. It turns anyone into a power user who can do in seconds what the dashboard takes minutes (or hours) to accomplish.
What Is WP-CLI?
WP-CLI is a tool that lets you manage WordPress from the terminal — the same text-based interface you use to run Claude Code. Instead of clicking through menus, you type commands. Instead of updating plugins one by one in the dashboard, you update them all with a single line.
Think of it as a remote control for your entire WordPress site.
5 Commands That Replace 90% of Dashboard Clicking
1. Update all plugins at once
wp plugin update --all
In the dashboard, you’d click Plugins → select all → Update. Then wait. Then check for errors. WP-CLI does it in one line, and Claude Code can run it for you while checking for problems automatically.
2. Create a new page with content
wp post create --post_type=page --post_title='About Us' --post_status=publish --post_content='Your content here'
No clicking through the block editor. No formatting struggles. Just tell Claude Code what you want on the page, and it creates it with proper structure.
3. Search and replace across the entire site
wp search-replace 'old-text' 'new-text'
Changed your phone number? Rebranded? This updates every instance across your entire database — posts, pages, widgets, menus — in seconds. Try doing that in the dashboard.
4. Export your entire site
wp db export backup.sql
Full database backup in one command. Run this before any major change. If something goes wrong, you can restore with wp db import backup.sql.
5. List all pages with their status
wp post list --post_type=page --fields=ID,post_title,post_status --format=table
Instant overview of every page on your site — ID, title, published or draft. No clicking through Pages → All Pages and scrolling.
Why This Matters with AI
Here’s the thing: you don’t need to memorize any of these commands. When you use Claude Code, you just describe what you want in plain English. “Update all my plugins.” “Create a new page called Summer Sale.” “Back up the database.” Claude Code translates your words into the right WP-CLI commands and runs them.
You get the speed and power of the command line without needing to learn the syntax. The AI is your translator.
The Real Power: Bulk Operations
Where WP-CLI + AI truly shines is bulk operations. Need to:
- Update meta descriptions on 200 pages? One conversation.
- Create 10 new pages with content? One conversation.
- Change the author on all posts? One command.
- Delete all spam comments? One command.
- Install and configure 5 plugins? One conversation.
In the dashboard, each of these would take 30-60 minutes of clicking. With Claude Code and WP-CLI, they take minutes.
Ready to leave the dashboard behind? We cover WP-CLI from scratch in Module 2 of WP AI Mastery →