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
770
0
Share
Adv WP CLI
Advanced WP CLI talk for WP Leeds dev night
Tom J Nowell
September 23, 2014
More Decks by Tom J Nowell
See All by Tom J Nowell
Using Blocks Outside The Editor
tarendai
0
1.1k
Composer_and_WordPress__1_.pdf
tarendai
0
96
REST APIs for Absolute Beginners
tarendai
0
1k
VVV 2
tarendai
0
840
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
550
Escape From New York
tarendai
0
790
WP The Right Way
tarendai
0
1.1k
Code Deodorant 2014
tarendai
1
800
WP CLI
tarendai
0
730
Other Decks in Technology
See All in Technology
React Compiler導入から21ヶ月、いま始めるならこうやる
astatsuya
2
270
SpeechTranscriber + AIによる文字起こし機能
kazuki1220
0
110
アプリブロック機能のつくりかたと、AIとHTMLの不合理な相性の良さについて
kumamotone
1
260
実例から学ぶ GuardDuty(SSH BruteForce)調査の全体フローと勘所【SecurityJAWS】
cscengineer
PRO
0
140
Redmine次期バージョン7.0の注目新機能解説 — UI/UX強化と連携強化を中心に
vividtone
1
190
AI時代に、 データアナリストがデータエンジニアに異動して
jackojacko_
0
1k
業務に残された「良くない型」で考える「TypeScriptの難しさ」
sajikix
2
560
The Bag-of-Documents Model for Query Understanding and Retrieval
dtunkelang
0
170
Claude Code / Codex / Kiro に AWS 権限を 渡すとき、何を設計すべきか
k_adachi_01
6
1.8k
React Compiler導入の効果と運用の工夫
kakehashi
PRO
3
280
AsyncStreamでマルチブロードキャストを実装する
1mash0
1
160
Claude Code で使える DuckDB Skills を試してみた / DuckDB Skills and Claude Code
masahirokawahara
1
940
Featured
See All Featured
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.5k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
199
73k
Become a Pro
speakerdeck
PRO
31
5.9k
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
2.9k
Designing for Timeless Needs
cassininazir
1
220
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
530
RailsConf 2023
tenderlove
30
1.4k
[SF Ruby Conf 2025] Rails X
palkan
2
1k
Color Theory Basics | Prateek | Gurzu
gurzu
0
310
Agile that works and the tools we love
rasmusluckow
331
21k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
170
Discover your Explorer Soul
emna__ayadi
2
1.1k
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