wp-cli: wordcamp nashville 2016

14
WP-CLI: Work faster, not harder. Presented at WordCamp Nashville, 2016 Terell Moore 9.17.2016

Upload: terell-moore

Post on 12-Apr-2017

243 views

Category:

Internet


4 download

TRANSCRIPT

WP-CLI: Work faster, not harder.

WP-CLI: Work faster, not harder.Presented at WordCamp Nashville, 2016Terell Moore9.17.2016

TITLE 1

2A bit about myselfOperations Engineer at WP EngineAt WP Engine for 4 years, working with WordPress for 7+Uses WP-CLI to manage over 300k WordPress installationsCustomer Experience Operations @ WP EngineTerell Moore

TITLE + CONTENT

2

3AGENDAWhat is WP-CLI & how do I get it?WP-CLI on a single installationWP-CLI via orchestration toolsQ&A1234

AGENDA: TWO COLUMN

What is WP-CLI & how do I get it?

Month XX, 2016DIVIDER 1

4

5A command line interface for WordPress

IMAC MOCKUP SLIDE

6Out of the box35 Core CommandsEverything from installing a plugin, to clearing WordPress transient cachePerform database operationsImport or export site dataManage usersSearch & replaceManage themes& more!

TITLE + CONTENT: LARGE BULLETS

6

7Installing WP-CLIFrom WP-CLI.orgYou can download the WP-CLI archive manually, from WP-CLI.orgDownload the archiveSave it in a safe place (/usr/local/bin recommended)Make it executableVia HomebrewWP-CLI is easily accessible for users of the homebrew package manager

$ brew install homebrew/php/wp-cliVia ComposerYou can include WP-CLI in your php-based project, using Composer!Just require it in your composer.json file

TITLE + CONTENT: THREE BOXES

7

8Now what?

IMAC MOCKUP SLIDE

In my opinion, WP CLIs true power is in its ability to scale past just one WordPress installation.

Month XX, 2016DIVIDER 1

9

10How large organizations use WP-CLI to scaleUsing Ansible + WP-CLI, WP Engine was able to roll out updates in response to a plugin security vulnerability to 10s of thousands of sites. Core, Plugin, and Theme UpdatesWP Engine updated 10s of thousands of sites using outdated Jetpack, in response to a security vulnerabilityWP-CLIs useful import/export, and search & replace tooling enables developers to develop locally.

Additionally, WP-CLI has the ability to perform commands on a remote target.

Continuous development and maintenanceWP-CLI helps developers develop locally, and maintain their live sites

TITLE + CONTENT: TWO COLUMN

10

11Plugin, Theme, and Core UpdatesUpdating Jetpack across 10,000+ installsWP Engine used Ansible along with WP-CLI to run critical security updates for over 10,000 WordPress installs.

WP-CLI excels when paired with orchestration software.WP-CLI has built-in commands to install, update, and delete plugins and themes.

These commands can be passed via orchestration software to as many WordPress instances as you have! This enables site administrators and developers to easily manage a fleet of sites.

TITLE + CONTENT: LEFT SIDEBAR

11

12Scale using your orchestration tool of choiceMany different orchestration tools can be used to scale your use of WP-CLI to many different WordPress installations.

CASE STUDY 2PG PAGE 2

13WP-CLI can help developers develop fasterContinuous Development & MaintenanceThe built-in set of commands help developers to create, update, import, and export WordPress installs. This can even be scripted, so developers can repeat the process often.

TITLE + CONTENT: LEFT SIDEBAR

13

THANK YOUTerell Moore@tee_rail

Month XX, 2016CLOSING 1