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
750
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
95
REST APIs for Absolute Beginners
tarendai
0
1k
VVV 2
tarendai
0
820
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
530
Escape From New York
tarendai
0
770
WP The Right Way
tarendai
0
1.1k
Code Deodorant 2014
tarendai
1
780
WP CLI
tarendai
0
710
Other Decks in Technology
See All in Technology
OpenClawでPM業務を自動化
knishioka
2
390
最大のアウトプット術は問題を作ること
ryoaccount
0
300
組織的なAI活用を阻む 最大のハードルは コンテキストデザインだった
ixbox
1
450
AIを活用したアクセシビリティ改善フロー
degudegu2510
1
140
出版記念イベントin大阪「書籍紹介&私がよく使うMCPサーバー3選と社内で安全に活用する方法」
kintotechdev
0
150
すごいぞManaged Kubernetes
harukasakihara
1
320
機能・非機能の学びを一つに!Agent Skillsで月間レポート作成始めてみた / Unifying Bug & Infra Insights — Building Monthly Quality Reports with Agent Skills
bun913
5
2.9k
OPENLOGI Company Profile
hr01
0
83k
ハーネスエンジニアリング×AI適応開発
aictokamiya
3
1.5k
Data Intelligence Engineering Unit 部門と各ポジション紹介
sansantech
PRO
0
120
制約を設計する - 非決定性との境界線 / Designing constraints
soudai
PRO
6
1.7k
サイボウズフロントエンドの活動から考える探究と発信
mugi_uno
0
110
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
55
8.1k
How to build a perfect <img>
jonoalderson
1
5.3k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
160
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
240
Why Our Code Smells
bkeepers
PRO
340
58k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
1.8k
Building Applications with DynamoDB
mza
96
7k
Evolving SEO for Evolving Search Engines
ryanjones
0
170
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
140
Optimizing for Happiness
mojombo
378
71k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.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
[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