Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Adv WP CLI
Search
Tom J Nowell
September 23, 2014
Technology
0
640
Adv WP CLI
Advanced WP CLI talk for WP Leeds dev night
Tom J Nowell
September 23, 2014
Tweet
Share
More Decks by Tom J Nowell
See All by Tom J Nowell
Using Blocks Outside The Editor
tarendai
0
810
Composer_and_WordPress__1_.pdf
tarendai
0
67
REST APIs for Absolute Beginners
tarendai
0
850
VVV 2
tarendai
0
650
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
390
Escape From New York
tarendai
0
650
WP The Right Way
tarendai
0
990
Code Deodorant 2014
tarendai
1
660
WP CLI
tarendai
0
560
Other Decks in Technology
See All in Technology
CData Virtuality を活かせるキーシナリオと製品デモ
cdataj
0
230
ADRを運用して3年経った僕らの現在地
onk
PRO
13
5.8k
SageMaker学習のツボ / The Key Points of Learning SageMaker
cmhiranofumio
0
200
TypeScript x Raycast x AIで変える開発者体験
nagauta
1
280
テストを楽に書きたい
tomorrowkey
1
200
O'Reilly Superstream: Building a RAG App to Chat with Your Data
pamelafox
0
120
組織デバイスのための効率的なアプリケーション更新戦略
kenchan0130
0
310
テストコードの品質を客観的な数値で担保しよう〜Mutation Testのすすめ〜
ysknsid25
12
3.5k
Castor - Le Task Runner PHP qui simplifie votre Workflow
lyrixx
1
290
品質マネジメントで抑えておきたい2つのリスクを見分けて未来に備えよう #yapcjapan
makky_tyuyan
0
110
とある事業会社にとっての Kaggler の魅力
hakubishin3
5
910
塩野義製薬様のAWS統合管理戦略:Organizations設計と運用の具体例
tkikuchi
0
110
Featured
See All Featured
WebSockets: Embracing the real-time Web
robhawkes
59
7.3k
Design by the Numbers
sachag
278
19k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
25
1.7k
Unsuck your backbone
ammeep
668
57k
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
11
1.5k
Why You Should Never Use an ORM
jnunemaker
PRO
53
9k
Producing Creativity
orderedlist
PRO
341
39k
How to Ace a Technical Interview
jacobian
275
23k
Fontdeck: Realign not Redesign
paulrobertlloyd
81
5.2k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
126
18k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
37
1.7k
KATA
mclloyd
27
13k
Transcript
Advanced WP CLI A WPLeeds talk by Tom J Nowell
I’m Tom J Nowell Code For The People
I’ll Cover • What is WP CLI • Some WP
CLI Commands & Usage • Demo
WP CLI WordPress, Command Line Interface A tool for terminal
users
What is The Terminal?
None
Once installed, open your WordPress folder on the terminal GIF
by Chris Coyier of CSS Tricks
Some of the Things WP CLI Can Do • Create
Posts • Create Users • Download plugins and themes • Database Queries • Installing WordPress
E.g. Adding an author to a site: ❯ wp user
create bob
[email protected]
--role=author
Listing activated plugins ❯ wp plugin list --status=active -- format=csv
--fields=name
Doing a Search replace ❯ wp search-replace oldsite.com newsite.com
List blogs, and their URLs in a multisite ❯ blogs=$(wp
site list --fields="site_id, blog_id,url" --format="csv") for entry in $blogs do site_id=$(echo $entry |cut -d ',' -f1 ) blog_id=$(echo $entry |cut -d ',' -f2 ) blog_url=$(echo $entry |cut -d ',' -f3 ) echo "$blog_id: $blog_url in $site_id" done
A demonstration
Questions? Tom J Nowell @tarendai tomjn.com