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
610
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
770
Composer_and_WordPress__1_.pdf
tarendai
0
62
REST APIs for Absolute Beginners
tarendai
0
810
VVV 2
tarendai
0
600
WordCamp Europe 2016 - Handling Anxiety
tarendai
1
360
Escape From New York
tarendai
0
630
WP The Right Way
tarendai
0
970
Code Deodorant 2014
tarendai
1
630
WP CLI
tarendai
0
500
Other Decks in Technology
See All in Technology
OSSコミットしてZennの課題を解決した話
dyoshikawa1993
0
150
開発と事業を繋ぐ!SREのオブザーバビリティ戦略 ~ Developers Summit 2024 Summer ~
leveragestech
0
630
dxd2024-生成AIに振り回された3か月間の成功と失敗/dxd2024-link-and-motivation
lmi
2
260
AutomatedLabを使って内部ペンテストを勉強しよう! -やられ社内ネットワークの自動構築-
n_etupirka
1
610
コンテナ・K8s研修 - 前半 コンテナ基礎・ハンズオン【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
170
[I/O Extended Android 2024] What`s new in Android 2024
kyeongwan
0
220
Amazon FSx for NetApp ONTAPのパフォーマンスチューニング要素をまとめてみた #cm_odyssey #devio2024
non97
0
220
Flutter研修【MIXI 24新卒技術研修】
mixi_engineers
PRO
0
160
エンジニアリングマネージャーはどう学んでいくのか #devsumi / How Do Engineering Managers Continue to Learn and Grow?
expajp
4
1.3k
ギークの理想が7つ集まるエムスリーで夢を叶えよう - エムスリー株式会社
m3_engineering
1
260
スレットハンティングについて知っておきたいこと
hacket
0
130
AIアシスタントの活用で品質の向上と開発ワークフローのスピードアップ
nagix
1
210
Featured
See All Featured
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
353
29k
StorybookのUI Testing Handbookを読んだ
zakiyama
15
4.9k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
155
14k
Code Reviewing Like a Champion
maltzj
517
39k
Git: the NoSQL Database
bkeepers
PRO
423
64k
Statistics for Hackers
jakevdp
792
220k
The Language of Interfaces
destraynor
151
23k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
90
47k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
13
430
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
78
15k
Infographics Made Easy
chrislema
238
18k
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