Automate Everything: WP-CLI Tricks That Save Freelancers Hours
What is WP-CLI and Why is it Non-Negotiable for Freelancers?
Getting Started: Installation and Basic Commands
Time-Saving Commands for Daily WordPress Management
Plugin & Theme Management from the Terminal
Effortless Database Operations
User and Role Management on the Fly
The Ultimate Power-Up: Automation with Bash Scripts and Cron Jobs
Creating a 'New Site' Starter Script
Automating Weekly Maintenance
Integrating WP-CLI with Deployment Pipelines
Conclusion
References
wp core version
- This shows your WordPress version. It's a quick way to verify WP-CLI is working and connected to your site.wp plugin list
- See all installed plugins, their status, and available updates at a glance. No more clicking through menus.wp theme list
- Similar to plugins, but for themes. You'll instantly see which themes are active, inactive, or need updates.wp plugin list --update=available
first to see what updates are pending. This gives you a chance to review before pulling the trigger.--dry-run
first. It shows you what will change without actually changing anything. Once you're confident:Posted Jul 6, 2025
Stop wasting time on repetitive WordPress tasks. Discover powerful WP-CLI commands and scripts to automate site setup, maintenance, and updates, freeing you up for more creative work.