30
Extending Your WordPress Toolbelt with WP-CLI WordCamp Raleigh 2013 Ryan Duff

Extending Your WordPress Toolbelt with WP-CLI

Embed Size (px)

DESCRIPTION

WordCamp Raleigh 2013

Citation preview

Page 1: Extending Your WordPress Toolbelt with WP-CLI

Extending Your WordPress Toolbelt

with WP-CLIWordCamp Raleigh 2013

Ryan Duff

Page 2: Extending Your WordPress Toolbelt with WP-CLI

Me

•WordPress Developer

•Open Source Contributor

•Sysadmin (sort of)

Page 3: Extending Your WordPress Toolbelt with WP-CLI

WP-CLI

WP-CLI is a set of command-line tools for managing WordPress

installations.

Page 4: Extending Your WordPress Toolbelt with WP-CLI
Page 5: Extending Your WordPress Toolbelt with WP-CLI

Requirements

•UNIX-like environment (OS X, Linux, FreeBSD, Cygwin)

•PHP 5.3.2 or later

•WordPress 3.4 or later

Page 6: Extending Your WordPress Toolbelt with WP-CLI

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

Page 7: Extending Your WordPress Toolbelt with WP-CLI

What Does It Do?Everything... almost

Sorry… it won’t make you coffee.

Page 8: Extending Your WordPress Toolbelt with WP-CLI

Download, Configure, Install

Page 9: Extending Your WordPress Toolbelt with WP-CLI

wp core download

Page 10: Extending Your WordPress Toolbelt with WP-CLI

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]"

Page 11: Extending Your WordPress Toolbelt with WP-CLI
Page 12: Extending Your WordPress Toolbelt with WP-CLI
Page 13: Extending Your WordPress Toolbelt with WP-CLI

Install and Manage Plugins

Page 14: Extending Your WordPress Toolbelt with WP-CLI

wp plugin

listsearchinstall | deleteactivate | deactivate | toggle

update

Page 15: Extending Your WordPress Toolbelt with WP-CLI
Page 16: Extending Your WordPress Toolbelt with WP-CLI
Page 17: Extending Your WordPress Toolbelt with WP-CLI

Themes too!

Page 18: Extending Your WordPress Toolbelt with WP-CLI

Import & Export

Search & Replace too!

Page 19: Extending Your WordPress Toolbelt with WP-CLI

But wait. There’s more!

Page 20: Extending Your WordPress Toolbelt with WP-CLI

PostsComments

UsersMedia

Post Meta

Page 21: Extending Your WordPress Toolbelt with WP-CLI

2 for 1 Special

Page 22: Extending Your WordPress Toolbelt with WP-CLI

MultisiteRewritesOptions

Page 23: Extending Your WordPress Toolbelt with WP-CLI
Page 24: Extending Your WordPress Toolbelt with WP-CLI

English please?

Page 25: Extending Your WordPress Toolbelt with WP-CLI

Your Turn(aka How to Extend WP-CLI)

Page 26: Extending Your WordPress Toolbelt with WP-CLI
Page 27: Extending Your WordPress Toolbelt with WP-CLI
Page 28: Extending Your WordPress Toolbelt with 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

Page 29: Extending Your WordPress Toolbelt with WP-CLI

Questions?

Page 30: Extending Your WordPress Toolbelt with WP-CLI

Ryan Duff

email: [email protected]

web: http://fusionized.com

twitter: @ryancduff

github: https://github.com/ryanduff