Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Yoav Farhi - Getting started with WP-CLI - Word...
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
WordPress Greek Community
PRO
November 19, 2016
Programming
370
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Yoav Farhi - Getting started with WP-CLI - WordCamp Athens 2016
WordPress Greek Community
PRO
November 19, 2016
More Decks by WordPress Greek Community
See All by WordPress Greek Community
Filippos Karailanidis - Beyond ChatGPT: AI Toolkit for the WordPress Developer
wpgr
PRO
0
58
Orestis Samaras - Modern WordPress Development with Composer
wpgr
PRO
0
43
Eleni Tsertou - Ταχύτερο website με Persistent Object Cache: Μύθος ή Αλήθεια;
wpgr
PRO
0
44
George Korakas - WordPress Security 2025: From Real Threats to Practical Defenses
wpgr
PRO
0
60
Δημήτρης Καρβούνης - Πέρα από το Admin Panel: Πώς να μιλήσεις στο WordPress σαν Developer μέσω REST API
wpgr
PRO
0
40
Αναστασία Αδαμούδη - Δημιουργία σύνθετου μενού πλοήγησης σε block θέματα
wpgr
PRO
0
26
Νίκος Μαυράκης - Κοστολογώντας τη δημιουργικότητα
wpgr
PRO
0
56
Jovana Smoljanovic Tucakov - AI vs. Human Content: What Works, What Backfires, and What’s Next
wpgr
PRO
0
59
Λεωνίδας Μηλώσης - Optimize – optimize – optimize: Caring for performance of your WordPress plugin or website
wpgr
PRO
0
48
Other Decks in Programming
See All in Programming
Vue Fes Japan 2026 タイムテーブル徹底解説
448jp
1
430
モバイル交通系ICへのチャージ実例から考える、クロスプラットフォーム開発におけるiOS実機テスト設計とCI運用
yusuga
1
520
そのリトライ、死んだコネクションを使い回していませんか ── GoのHTTPクライアントとHTTP/2を実プロダクト障害から学び直す
myus4a
0
200
GraphRAGのKnowledge Graphを 直接!見る/View-GraphRAG's-KnowledgeGraph-directly!
tyumugi1113
1
370
手動確認はもう限界 〜XCUITestでCustom URL Schemeの遷移を起動種別ごとに自動テストする〜 / Testing Custom URL Schemes with XCUITest
otouto
0
320
【高い買い物LT会】初任給で話題の国産フィジカルAIを買った話
akagami
PRO
0
160
Java 27新機能 / Java 27 new features
kishida
2
150
AI × TiDD / 2026.09.05 Redmine 大阪
tokudiro
1
180
Family mrubyの進捗
kishima
1
130
スマートフォンでモールス信号を送受信する 〜スマートフォンのLEDとカメラで作る光通信の設計と実装〜
atsuki_seo
0
160
AI に Inclusive UI を書かせよう — Design Rules Skill で Compose UI を作り直す
theoriatec2024
1
510
GKE で Pod の見方を変えたら、スケールアウト時の挙動を真に捉えられた話
stkk
0
130
Featured
See All Featured
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
360
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
4.9k
Deep Space Network (abreviated)
tonyrice
0
310
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
900
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.6k
Joys of Absence: A Defence of Solitary Play
codingconduct
1
530
Side Projects
sachag
456
43k
VelocityConf: Rendering Performance Case Studies
addyosmani
331
25k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
63
46k
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
Optimizing for Happiness
mojombo
378
71k
Music & Morning Musume
bryan
48
7.4k
Transcript
# Getting started with WP-CLI # WP-Athens 2016 Yoav Farhi
@yoavf
The original presentation was a live demo The
following slides are just a recap of the commands presented.
# WP-CLI website ‣ open http://wp-cli.org
# Download ‣ curl -O https://raw.githubusercontent.com/ wp-cli/builds/gh-pages/phar/wp-cli.phar
# Mac Setup ‣ chmod +x wp-cli.phar ‣ sudo mv
wp-cli.phar /usr/local/bin/wp
# Test & list of commands ‣ wp
# Download WordPress ‣ wp core download
# wp-config.php creation ‣ wp core config --dbname=wpcli --dbuser=root
--dbpass=root --dbhost=localhost --dbprefix=wpcli_
# Install ‣ wp core install --url="http://wpcli.dev" --title="WP-CLI
Demo" --admin_user=yoav --admin_password=mypassword
[email protected]
# Languages ‣ wp core language install el --activate ‣
wp core language activate en_US
# Updates ‣ wp core update
# Packages ‣ wp package ‣ wp package list ‣
wp package install aaemnnosttv/wp-cli-http-command
# Import ‣ wp plugin install wordpress-importer --activate ‣
wp http get https://wpcom-themes.svn.automattic.com/ demo/theme-unit-test-data.xml --scheme=https > theme-unit-test-data.xml ‣ wp import theme-unit-test-data.xml --authors=create
# Options ‣ wp option ‣ wp option update blogname
"WordCamp Athens wp-cli demo"
# Sticky posts option ‣ wp option get sticky_posts ‣
wp option update sticky_posts [] --format=json
# Post ‣ wp post ‣ wp post generate --count=2
# Post with external data ‣ wp http get http://loripsum.net/api/5
| wp post generate --post_content --count=1
# Search & replace ‣ wp search-replace Lorem WordPress
# Scaffolding ‣ wp scaffold child-theme my-new-theme --parent_theme=twentysixteen
--author_uri=http://yoav.fr --activate ‣ wp scaffold _s iloveathens --theme_name="I love Athens!" --author="Yoav Farhi" --sassify
# Themes ‣ wp theme list ‣ wp theme activate
twentyfourteen
# Plugins ‣ wp plugin list ‣ wp plugin install
jetpack --activate
# Subcommands from plugins ‣ wp jetpack ‣ wp jetpack
module list
# Export / DB ‣ wp export ‣ wp db
export l33t-backup.sql
# Multisite ‣ wp core multisite-convert ‣ wp site create
--slug=new-site ‣ wp theme activate twentyfourteen --url=http://wpcli.dev/new-site
Thanks Yoav Farhi @yoavf