Practical WordPress Development

WordPress Command Line with WP-CLI

WordPress Command Line

Earlier this weet, @Scribu tweeted out the following link:

Naturally, I followed and WP-CLI is definitely one of the cooler WordPress utilities I’ve seen in recent months. Basically, it introduces the WordPress command line.

From the website itself:

wp-cli is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs, create posts and much more.

Simply put, WP-CLI is a utility for managing WordPress from the command line. This means that we’re able to download, install, and administer WordPress and plugins directly from the command line.

Though I can definitely see how this would be useful for users who enjoy using the terminal more than the mouse, I think its potential really lies in being able to administer WordPress via SSH. After installing it on a remote server, I think it’d be much easier to manage a number of sites via the command line rather than opening a number of browser tabs.

Perhaps the best part is the the project is being actively developed and already has a number of contributors. You can checkout the homepage for more information, or even view, contribute, or grab the source on GitHub.


  1. Japh

    Scribu’s done awesome work on wp-cli. He did a tutorial for us on Wptuts+ showing how to use it back in February, and the project has progressed nicely since then too.

    • Tom McFarlin

      Nice – yeah, I’m really impressed with the state that it’s in.

  2. Kevin

    I’ve used wp-cli since its initial release. Absolutely love it!

    • Tom McFarlin

      Nice! I didn’t know that. I’ve an idea for a project in mind if I can just find the time to actually do it.

  3. Mario Peshev

    It’s quite handy indeed – have used it a several times, and I’ve also tried this one – for other purposes (admin-related on remote hosts).

    Since PHP is not that popular with it’s cli capabilities, it’s good to have a straight forward approach as in all the other scripting languages.

    • Tom McFarlin

      It’s good to have a straight forward approach as in all the other scripting languages.

      Agree with this for sure.

      And thanks for the link to WordPress Console. First time I’ve heard of that one. Definitely interested in checking it out, too.

Leave a Reply

© 2020 Tom McFarlin

Theme by Anders NorenUp ↑