Today at WordCamp NYC, I gave a presentation on how you can work with WordPress via a command-line interface (CLI.) This presentation covered how you can can poke and prod WordPress core and API by using WPSH, a custom script built on top of Facebook’s PHPSH.

Also covered were approaches to write command-line scripts for WordPress, using this knowledge to build tools for importing and exporting blog data, as well as some of the higher-level issues involved with processing bulk data.

One question that was offered after the presentation had to do with my familiarity with wp-cli, which I admit, I had none. It appears that the wp-cli utility is useful for atomic operations on the blog, like upgrading core, adding users, &c., whereas wpsh will give you an interactive environment to run any PHP / WordPress API code that your heart desires. I will be sure to give props to wp-cli in my next talk, and discuss how it differs from wpsh, and the advantages of each.

You can obtain the presentation slides at github.

2 Thoughts Contributed to “#wcnyc 2012: WordPress on the Command-Line”

  1. Pingback: A Developer’s Highlights from WordCamp NYC 2012 | Oomph

  2. Pingback: Recap: WordCamp New York City 2012 | Oomph

What do you think?

(required)

Ben Doherty

By Ben Doherty

Technology Director

Ben has a long history of developing programs for the web as well as mobile clients and desktop computers. After getting his start at a small internet service provider in his home town, Ben went on to earn his Bachelor’s degree in Computer Systems Engineering at the University of Massachusetts at Amherst. Since then, Ben spent several years honing his technical and business skills freelancing with a wide variety of clients, developing custom software solutions and websites to suit their needs.

Read More About Ben Follow on Twitter

Oomph is a full-service digital agency providing strategy, design & development and a host of other web services. A leader in WordPress and Drupal implementation, Oomph pushes the boundaries of today’s web platforms. Oomph has a diverse portfolio of non-profits, international corporations and publications. Team Oomph is always thinking creatively about the digital world. Oomph is located in Providence and Boston.