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
740
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
1.1k
Composer_and_WordPress__1_.pdf
tarendai
0
92
REST APIs for Absolute Beginners
tarendai
0
1k
VVV 2
tarendai
0
810
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
510
Escape From New York
tarendai
0
760
WP The Right Way
tarendai
0
1.1k
Code Deodorant 2014
tarendai
1
760
WP CLI
tarendai
0
700
Other Decks in Technology
See All in Technology
予期せぬコストの急増を障害のように扱う――「コスト版ポストモーテム」の導入とその後の改善
muziyoshiz
1
1.6k
OCI Database Management サービス詳細
oracle4engineer
PRO
1
7.3k
GitHub Issue Templates + Coding Agentで簡単みんなでIaC/Easy IaC for Everyone with GitHub Issue Templates + Coding Agent
aeonpeople
1
180
Context Engineeringの取り組み
nutslove
0
280
toCプロダクトにおけるAI機能開発のしくじりと学び / ai-product-failures-and-learnings
rince
6
5.5k
~Everything as Codeを諦めない~ 後からCDK
mu7889yoon
3
270
Tebiki Engineering Team Deck
tebiki
0
24k
データ民主化のための LLM 活用状況と課題紹介(IVRy の場合)
wxyzzz
2
670
制約が導く迷わない設計 〜 信頼性と運用性を両立するマイナンバー管理システムの実践 〜
bwkw
3
870
2026年、サーバーレスの現在地 -「制約と戦う技術」から「当たり前の実行基盤」へ- /serverless2026
slsops
2
210
生成AI時代にこそ求められるSRE / SRE for Gen AI era
ymotongpoo
5
2.7k
Deno・Bunの標準機能やElysiaJSを使ったWebSocketサーバー実装 / ラーメン屋を貸し切ってLT会! IoTLT 2026新年会
you
PRO
0
290
Featured
See All Featured
Organizational Design Perspectives: An Ontology of Organizational Design Elements
kimpetersen
PRO
1
110
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Mind Mapping
helmedeiros
PRO
0
78
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
61k
Building Applications with DynamoDB
mza
96
6.9k
AI: The stuff that nobody shows you
jnunemaker
PRO
2
240
Context Engineering - Making Every Token Count
addyosmani
9
650
Game over? The fight for quality and originality in the time of robots
wayneb77
1
110
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
196
71k
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.1k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
359
30k
Google's AI Overviews - The New Search
badams
0
900
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