SlideShare a Scribd company logo
Extending Your
WordPress Toolbelt
with WP-CLI
WordCamp 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.
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
How To Install

curl
https://raw.github.com/wp-cli/wp-cli.github.c
| bash

Alternate install methods:
https://github.com/wp-cli/wp-cli/wiki/Alternative-Install-Methods
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="user@site.com"
Extending Your WordPress Toolbelt with WP-CLI
Extending Your WordPress Toolbelt with WP-CLI
Install and Manage
Plugins
wp plugin
list
search
install | delete
activate | deactivate | toggle
update
Extending Your WordPress Toolbelt with WP-CLI
Extending Your WordPress Toolbelt with WP-CLI
Themes too!
Import & Export
Search & Replace too!
Search & Replace too!
Search & Replace too!
But wait. There’s more!
Posts
Comments
Users
Media
Post Meta
Post Meta
Post Meta
Post Meta
2 for 1 Special
Multisite
Rewrites
Options
Options
Options
Extending Your WordPress Toolbelt with WP-CLI
English please?
Your Turn
(aka How to Extend WP-CLI)
Extending Your WordPress Toolbelt with WP-CLI
Extending Your WordPress Toolbelt with WP-CLI
More Info
Web: http://wp-cli.org/
Core Commands: http://wp-cli.org/commands/
Cookbook: https://github.com/wp-cli/wpcli/wiki/Commands-Cookbook
Github: https://github.com/wp-cli/wp-cli
Questions?
Ryan Duff
email: ryan@fusionized.com
web: http://fusionized.com
twitter: @ryancduff
github: https://github.com/ryanduff

More Related Content

What's hot (20)

PDF
WP-CLI - WordCamp Miami 2015
Shawn Hooper
 
PDF
WordPress Performance optimization
Brecht Ryckaert
 
PDF
Getting Started With WordPress Plugin Development
Thomas Vitale
 
PDF
WP-CLI Talk from WordCamp Montreal
Shawn Hooper
 
PPTX
A crash course in scaling wordpress
GovLoop
 
PDF
Improving WordPress performance (xdebug and profiling)
Otto Kekäläinen
 
PPTX
Wordpress vs Google Blogger/ Wampserver
Kshitij Wagle
 
PDF
Automatic testing and quality assurance for WordPress plugins
Otto Kekäläinen
 
PDF
Why it's dangerous to turn off automatic updates and here's how to do it
Onni Hakala
 
PPTX
High Available WordPress
Vox Teneo
 
KEY
WordPress Security
Ivan Storck
 
PDF
Ako na vlastne WP temy
Juraj Kiss
 
PPTX
WordPress.org & Optimizing Security for your WordPress sites
GovLoop
 
PDF
Word camp2011 introwordpresssecurity
David Wilemski
 
PPT
Web development-work space
chawlan
 
PDF
Mastering WordPress Vol.1
Wataru OKAMOTO
 
PDF
The eggless Plone manifesto (or Plone the open source cms-as-a-service platf...
Dylan Jay
 
KEY
Extending Custom Post Types
ryanduff
 
PDF
JavaScript development methodology
Aleksander Fabijan
 
PDF
Make your life easy with WP-CLI
Michael Corkum
 
WP-CLI - WordCamp Miami 2015
Shawn Hooper
 
WordPress Performance optimization
Brecht Ryckaert
 
Getting Started With WordPress Plugin Development
Thomas Vitale
 
WP-CLI Talk from WordCamp Montreal
Shawn Hooper
 
A crash course in scaling wordpress
GovLoop
 
Improving WordPress performance (xdebug and profiling)
Otto Kekäläinen
 
Wordpress vs Google Blogger/ Wampserver
Kshitij Wagle
 
Automatic testing and quality assurance for WordPress plugins
Otto Kekäläinen
 
Why it's dangerous to turn off automatic updates and here's how to do it
Onni Hakala
 
High Available WordPress
Vox Teneo
 
WordPress Security
Ivan Storck
 
Ako na vlastne WP temy
Juraj Kiss
 
WordPress.org & Optimizing Security for your WordPress sites
GovLoop
 
Word camp2011 introwordpresssecurity
David Wilemski
 
Web development-work space
chawlan
 
Mastering WordPress Vol.1
Wataru OKAMOTO
 
The eggless Plone manifesto (or Plone the open source cms-as-a-service platf...
Dylan Jay
 
Extending Custom Post Types
ryanduff
 
JavaScript development methodology
Aleksander Fabijan
 
Make your life easy with WP-CLI
Michael Corkum
 

Similar to Extending Your WordPress Toolbelt with WP-CLI (20)

PDF
Playing with WP-CLI (WordPress Command Line Interface)
Anam Ahmed
 
PPTX
WordPress CLI in-depth
Sanjay Willie
 
PDF
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Andrea Cardinali
 
PDF
Command Line WordPress with WP-CLI
James Collins
 
PDF
Introduction to WP-CLI: Manage WordPress from the command line
Behzod Saidov
 
PPTX
WP-CLI: WordCamp Nashville 2016
Terell Moore
 
PPTX
Aditya Shah - WPCLI - WordCamp Asia
Aditya Shah
 
PPTX
Take Command of WordPress With WP-CLI
Diana Thompson
 
PDF
The Themer's Guide to WP-CLI
Edmund Turbin
 
PDF
wp cli- don’t fear the command line
Dwayne McDaniel
 
PDF
Getting Started with WP-CLI, a tool to automate your life
AJ Morris
 
PDF
A Better WordPress Workflow with WP-CLI
Rikesh Ramlochund
 
PDF
Save Time By Manging WordPress from the Command Line
Shawn Hooper
 
PDF
The Themer's Guide to WP-CLI
Edmund Turbin
 
PDF
Command Line WordPress with WP-CLI - WordPress Perth User Group
James Collins
 
PPTX
Take Command of WordPress With WP-CLI at WordCamp Long Beach
Diana Thompson
 
PPT
Wp cli
Aaron Brazell
 
PPT
Wp cli-wcbalt
Aaron Brazell
 
PDF
WooCommerce WP-CLI Basics
corsonr
 
PPTX
Session: WP Site Management using WP-CLI from Scratch
Roald Umandal
 
Playing with WP-CLI (WordPress Command Line Interface)
Anam Ahmed
 
WordPress CLI in-depth
Sanjay Willie
 
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Andrea Cardinali
 
Command Line WordPress with WP-CLI
James Collins
 
Introduction to WP-CLI: Manage WordPress from the command line
Behzod Saidov
 
WP-CLI: WordCamp Nashville 2016
Terell Moore
 
Aditya Shah - WPCLI - WordCamp Asia
Aditya Shah
 
Take Command of WordPress With WP-CLI
Diana Thompson
 
The Themer's Guide to WP-CLI
Edmund Turbin
 
wp cli- don’t fear the command line
Dwayne McDaniel
 
Getting Started with WP-CLI, a tool to automate your life
AJ Morris
 
A Better WordPress Workflow with WP-CLI
Rikesh Ramlochund
 
Save Time By Manging WordPress from the Command Line
Shawn Hooper
 
The Themer's Guide to WP-CLI
Edmund Turbin
 
Command Line WordPress with WP-CLI - WordPress Perth User Group
James Collins
 
Take Command of WordPress With WP-CLI at WordCamp Long Beach
Diana Thompson
 
Wp cli-wcbalt
Aaron Brazell
 
WooCommerce WP-CLI Basics
corsonr
 
Session: WP Site Management using WP-CLI from Scratch
Roald Umandal
 
Ad

More from ryanduff (7)

PDF
WordCamp Raleigh 2015 - So You Want to Build and Release a Plugin
ryanduff
 
PDF
WordCamp Lancaster - Choosing WordPress Themes and Plugins
ryanduff
 
PPT
WordPress Harrisburg Meetup - Best Practices
ryanduff
 
KEY
doing_it_right() with WordPress
ryanduff
 
KEY
WordPress Custom Post Types Part 1: Back End
ryanduff
 
PDF
Productivity 101: Making a Easily Redeployable Dev Environment with Subversion
ryanduff
 
KEY
Why Switching To WordPress 3.0 Is The Best Thing You Can Do For Your Clients
ryanduff
 
WordCamp Raleigh 2015 - So You Want to Build and Release a Plugin
ryanduff
 
WordCamp Lancaster - Choosing WordPress Themes and Plugins
ryanduff
 
WordPress Harrisburg Meetup - Best Practices
ryanduff
 
doing_it_right() with WordPress
ryanduff
 
WordPress Custom Post Types Part 1: Back End
ryanduff
 
Productivity 101: Making a Easily Redeployable Dev Environment with Subversion
ryanduff
 
Why Switching To WordPress 3.0 Is The Best Thing You Can Do For Your Clients
ryanduff
 
Ad

Recently uploaded (20)

DOCX
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
PDF
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PDF
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
PDF
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
PDF
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
PDF
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
PDF
Why aren't you using FME Flow's CPU Time?
Safe Software
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
Redefining Work in the Age of AI - What to expect? How to prepare? Why it mat...
Malinda Kapuruge
 
PDF
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
PDF
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
PPTX
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
PDF
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
PPTX
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
PDF
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
PDF
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
Daily Lesson Log MATATAG ICT TEchnology 8
LOIDAALMAZAN3
 
How to Visualize the ​Spatio-Temporal Data Using CesiumJS​
SANGHEE SHIN
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
Understanding AI Optimization AIO, LLMO, and GEO
CoDigital
 
99 Bottles of Trust on the Wall — Operational Principles for Trust in Cyber C...
treyka
 
GDG Cloud Southlake #44: Eyal Bukchin: Tightening the Kubernetes Feedback Loo...
James Anderson
 
Darley - FIRST Copenhagen Lightning Talk (2025-06-26) Epochalypse 2038 - Time...
treyka
 
Why aren't you using FME Flow's CPU Time?
Safe Software
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Redefining Work in the Age of AI - What to expect? How to prepare? Why it mat...
Malinda Kapuruge
 
Simplify Your FME Flow Setup: Fault-Tolerant Deployment Made Easy with Packer...
Safe Software
 
Understanding The True Cost of DynamoDB Webinar
ScyllaDB
 
Enabling the Digital Artisan – keynote at ICOCI 2025
Alan Dix
 
Unlocking FME Flow’s Potential: Architecture Design for Modern Enterprises
Safe Software
 
Smart Factory Monitoring IIoT in Machine and Production Operations.pptx
Rejig Digital
 
DoS Attack vs DDoS Attack_ The Silent Wars of the Internet.pdf
CyberPro Magazine
 
TrustArc Webinar - Navigating APAC Data Privacy Laws: Compliance & Challenges
TrustArc
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Dev Dives: Accelerating agentic automation with Autopilot for Everyone
UiPathCommunity
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 

Extending Your WordPress Toolbelt with WP-CLI