wp-cli is a great command line tool that lets power users manage WordPress with ease. It uses WordPress itself to perform its functions, which means that in most cases, the same code gets run as it would if you were controlling WordPress via its admin screens directly! The open source project was started by Andreas Screten and is now lead by Cristi Burcă, who is widely known as scribu within the WordPress community.
You can do all sorts of cool things with wp-cli by running the
wp command via SSH in your WordPress directory. A few include:
- View Plugin Status:
wp plugin status
- Update All Plugins:
wp plugin update-all
- Install Plugin:
wp plugin install <plugin-name>
- Change Theme:
wp theme activate <theme-name>
- Import/Export Database:
wp db import/export
Of course, the coolest bit is that you can also write custom commands for wp-cli, so that you can make client site management more automated or integrate it with your plugins to perform common tasks via the command line.
During the course of the talk, we’ll go over basic WordPress management with wp-cli, followed by a walkthrough with the creation of a simple plugin, so that you can leave understanding what wp-cli is, and hopefully with some ideas as to how it can make your life with WordPress better.
About the Speaker:
What do you do at DreamHost?
I’m a developer that contributes to WordPress core and works on WordPress specific projects here at DreamHost. I also get to hang with the awesome WordPress community online and at events, to help us stay connected and informed on how to best optimize DreamHost servers and services for WordPress. It’s also fun to contribute to related projects, like wp-cli and plugins which help both the community and DreamHost all at once. Hurray collaboration!
What’s one interesting fact we don’t know about you?
I lived in southern Spain for four years while growing up. There I learned Spanish and gained a deeper love for sailing.
What shows are on your DVR?
Although I don’t have a DVR, I’ve been enjoying both the current Doctor Who and BBC’s Sherlock quite thoroughly.
What’s your go-to cocktail?
I don’t have very many mixed drinks, and generally go with a whisky neat instead.
What Pandora station are you listening to these days?
Currently Bon Iver. Before that was Radiohead, which I highly recommend as a Pandora seed – lots of great related music there.
What’s your alma mater?
The University of Michigan. Go Blue!