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
660
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
890
Composer_and_WordPress__1_.pdf
tarendai
0
68
REST APIs for Absolute Beginners
tarendai
0
920
VVV 2
tarendai
0
710
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
430
Escape From New York
tarendai
0
670
WP The Right Way
tarendai
0
1k
Code Deodorant 2014
tarendai
1
680
WP CLI
tarendai
0
600
Other Decks in Technology
See All in Technology
技術的負債を正しく理解し、正しく付き合う #phperkaigi / PHPerKaigi 2025
shogogg
7
1.6k
頻繁リリース × 高品質 = 無理ゲー? いや、できます!/20250306 Shoki Hyo
shift_evolve
0
130
Compose MultiplatformにおけるiOSネイティブ実装のベストプラクティス
enomotok
1
180
【ServiceNow SNUG Meetup LT deck】ServiceNow「検索性の進化」ZingからNow Assistまで
niwato
1
280
グループポリシー再確認
murachiakira
0
140
職種に名前が付く、ということ/The fact that a job title has a name
bitkey
1
210
ソフトウェア開発現代史: なぜ日本のソフトウェア開発は「滝」なのか?製造業の成功体験とのギャップ #jassttokyo
takabow
2
960
パスキー導入の課題と ベストプラクティス、今後の展望
ritou
7
1k
React Server Componentは 何を解決し何を解決しないのか / What do React Server Components solve, and what do they not solve?
kaminashi
5
910
EMの仕事、あるいは顧客価値創出のアーキテクト
radiocat
0
130
ISUCONにPHPで挑み続けてできるようになっ(てき)たこと / phperkaigi2025
blue_goheimochi
0
130
LINE API Deep Dive Q1 2025: Unlocking New Possibilities
linedevth
1
140
Featured
See All Featured
4 Signs Your Business is Dying
shpigford
183
22k
The Art of Programming - Codeland 2020
erikaheidi
53
13k
Code Review Best Practice
trishagee
67
18k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.5k
Producing Creativity
orderedlist
PRO
344
40k
Intergalactic Javascript Robots from Outer Space
tanoku
270
27k
Testing 201, or: Great Expectations
jmmastey
42
7.3k
Docker and Python
trallard
44
3.3k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
102
18k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
32
2.2k
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 bob@example.com --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