Skip to content

WP-CLI: Save Time by Managing WordPress from the Command Line

Categories:WordPress

Talk Synopsis

WP-CLI is a set of command line tools for managing your WordPress site. It allows you to perform many tasks much quicker than you would be able to by other means. In this session, I will teach you how to get WP-CLI running, and show some of my favourite time saving features. Once you’ve started using WP-CLI, you’ll wonder how you ever lived without it! This talk is appropriate for developers, designers and server administrators of all skill levels.

Slides

Video

Notes & Links

  • WP-CLI Home
  • Setup Base Site Scipt – Setup a website with core, theme, a few plugins, and test data. This script also forces a few pieces to be old versions, so that I could show the update capabilities in WP-CLI.
  • Update All Script – A quick script that creates a database backup, updates WordPress core, all themes, and all plugins.
  • I showed you how to pipe content into the post generate command.  This was:curl “http://example.com/url-to-post-content/” | wp post generate –count=50 –post_content
  • I showed you how you can import users from a CSV file.  Here’s the CSV file with my sample users.
  • I talked about the test data that Automattic made for unit testing themes.  You can import this with the wp import command.  You can download the test data XML file here.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.