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

PDF
Extending your WordPress Toolbelt with WP-CLI - WordCamp Austin 2014
PDF
Making Magic with WP-CLI
PPTX
Ryan Duff 2015 WordCamp US HTTP API
PDF
Workshop On WP-CLI
PPT
So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
KEY
Productivity 101: Making a Easily Re-deployable Dev Environment with Subversion
PDF
Save Time by Managing WordPress from the Command Line
PPTX
WP-CLI - A Good Friend of Developer
Extending your WordPress Toolbelt with WP-CLI - WordCamp Austin 2014
Making Magic with WP-CLI
Ryan Duff 2015 WordCamp US HTTP API
Workshop On WP-CLI
So You Want to Build and Release a Plugin? WordCamp Lancaster 2014
Productivity 101: Making a Easily Re-deployable Dev Environment with Subversion
Save Time by Managing WordPress from the Command Line
WP-CLI - A Good Friend of Developer

What's hot (20)

PDF
WP-CLI - WordCamp Miami 2015
PDF
WordPress Performance optimization
PDF
Getting Started With WordPress Plugin Development
PDF
WP-CLI Talk from WordCamp Montreal
PPTX
A crash course in scaling wordpress
PDF
Improving WordPress performance (xdebug and profiling)
PPTX
Wordpress vs Google Blogger/ Wampserver
PDF
Automatic testing and quality assurance for WordPress plugins
PDF
Why it's dangerous to turn off automatic updates and here's how to do it
PPTX
High Available WordPress
KEY
WordPress Security
PDF
Ako na vlastne WP temy
PPTX
WordPress.org & Optimizing Security for your WordPress sites
PDF
Word camp2011 introwordpresssecurity
PPT
Web development-work space
PDF
Mastering WordPress Vol.1
PDF
The eggless Plone manifesto (or Plone the open source cms-as-a-service platf...
KEY
Extending Custom Post Types
PDF
JavaScript development methodology
PDF
Make your life easy with WP-CLI
WP-CLI - WordCamp Miami 2015
WordPress Performance optimization
Getting Started With WordPress Plugin Development
WP-CLI Talk from WordCamp Montreal
A crash course in scaling wordpress
Improving WordPress performance (xdebug and profiling)
Wordpress vs Google Blogger/ Wampserver
Automatic testing and quality assurance for WordPress plugins
Why it's dangerous to turn off automatic updates and here's how to do it
High Available WordPress
WordPress Security
Ako na vlastne WP temy
WordPress.org & Optimizing Security for your WordPress sites
Word camp2011 introwordpresssecurity
Web development-work space
Mastering WordPress Vol.1
The eggless Plone manifesto (or Plone the open source cms-as-a-service platf...
Extending Custom Post Types
JavaScript development methodology
Make your life easy with WP-CLI
Ad

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

PDF
Playing with WP-CLI (WordPress Command Line Interface)
PPTX
WordPress CLI in-depth
PDF
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
PDF
Command Line WordPress with WP-CLI
PDF
Introduction to WP-CLI: Manage WordPress from the command line
PPTX
WP-CLI: WordCamp Nashville 2016
PPTX
Aditya Shah - WPCLI - WordCamp Asia
PPTX
Take Command of WordPress With WP-CLI
PDF
The Themer's Guide to WP-CLI
PDF
wp cli- don’t fear the command line
PDF
Getting Started with WP-CLI, a tool to automate your life
PDF
A Better WordPress Workflow with WP-CLI
PDF
Save Time By Manging WordPress from the Command Line
PDF
The Themer's Guide to WP-CLI
PDF
Command Line WordPress with WP-CLI - WordPress Perth User Group
PPTX
Take Command of WordPress With WP-CLI at WordCamp Long Beach
PPT
PPT
Wp cli-wcbalt
PDF
WooCommerce WP-CLI Basics
PPTX
Session: WP Site Management using WP-CLI from Scratch
Playing with WP-CLI (WordPress Command Line Interface)
WordPress CLI in-depth
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Command Line WordPress with WP-CLI
Introduction to WP-CLI: Manage WordPress from the command line
WP-CLI: WordCamp Nashville 2016
Aditya Shah - WPCLI - WordCamp Asia
Take Command of WordPress With WP-CLI
The Themer's Guide to WP-CLI
wp cli- don’t fear the command line
Getting Started with WP-CLI, a tool to automate your life
A Better WordPress Workflow with WP-CLI
Save Time By Manging WordPress from the Command Line
The Themer's Guide to WP-CLI
Command Line WordPress with WP-CLI - WordPress Perth User Group
Take Command of WordPress With WP-CLI at WordCamp Long Beach
Wp cli-wcbalt
WooCommerce WP-CLI Basics
Session: WP Site Management using WP-CLI from Scratch
Ad

More from ryanduff (7)

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

Recently uploaded (20)

PDF
Machine learning based COVID-19 study performance prediction
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
MYSQL Presentation for SQL database connectivity
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Empathic Computing: Creating Shared Understanding
PPTX
sap open course for s4hana steps from ECC to s4
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PPTX
Cloud computing and distributed systems.
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
cuic standard and advanced reporting.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Unlocking AI with Model Context Protocol (MCP)
PPT
Teaching material agriculture food technology
Machine learning based COVID-19 study performance prediction
Chapter 3 Spatial Domain Image Processing.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
MYSQL Presentation for SQL database connectivity
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Empathic Computing: Creating Shared Understanding
sap open course for s4hana steps from ECC to s4
Digital-Transformation-Roadmap-for-Companies.pptx
Spectral efficient network and resource selection model in 5G networks
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Cloud computing and distributed systems.
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
cuic standard and advanced reporting.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Unlocking AI with Model Context Protocol (MCP)
Teaching material agriculture food technology

Extending Your WordPress Toolbelt with WP-CLI