Extending Your WordPress Toolbelt
with WP-CLIWordCamp Raleigh 2013
Ryan Duff
Me
•WordPress Developer
•Open Source Contributor
•Sysadmin (sort of)
WP-CLI
WP-CLI is a set of command-line tools for managing WordPress
installations.
Requirements
•UNIX-like environment (OS X, Linux, FreeBSD, Cygwin)
•PHP 5.3.2 or later
•WordPress 3.4 or later
How To Install
Alternate install methods:https://github.com/wp-cli/wp-cli/wiki/Alternative-Install-Methods
curl https://raw.github.com/wp-cli/wp-cli.github.com/master/installer.sh | bash
What Does It Do?Everything... almost
Sorry… it won’t make you coffee.
Download, Configure, Install
wp core download
wp core config --dbname=wcraleigh --dbuser=wcraleigh --dbpass=wcraleigh
wp core install --url="http://site.com" --title="Site Name" --admin_user=notadmin --admin_password=somethingstrong --admin_email="[email protected]"
Install and Manage Plugins
wp plugin
listsearchinstall | deleteactivate | deactivate | toggle
update
Themes too!
Import & Export
Search & Replace too!
But wait. There’s more!
PostsComments
UsersMedia
Post Meta
2 for 1 Special
MultisiteRewritesOptions
English please?
Your Turn(aka How to Extend WP-CLI)
More InfoWeb: http://wp-cli.org/
Core Commands: http://wp-cli.org/commands/
Cookbook: https://github.com/wp-cli/wp-cli/wiki/Commands-Cookbook
Github: https://github.com/wp-cli/wp-cli
Questions?
Ryan Duff
email: [email protected]
web: http://fusionized.com
twitter: @ryancduff
github: https://github.com/ryanduff
Top Related