$30 off During Our Annual Pro Sale. View Details »
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Yoav Farhi - Getting started with WP-CLI - Word...
Search
WordPress Greek Community
November 19, 2016
Programming
1
340
Yoav Farhi - Getting started with WP-CLI - WordCamp Athens 2016
WordPress Greek Community
November 19, 2016
Tweet
Share
More Decks by WordPress Greek Community
See All by WordPress Greek Community
Thanassis Zannias - Flexible WordPress Dev Environment with Docker
wpgr
0
29
Andreas Karavanas - AI Supercharged Landing Pages
wpgr
0
34
Όμορφα, γρήγορα και οικονομικά websites με WordPress
wpgr
0
40
Unlocking creativity - Marilia Darilli
wpgr
0
74
Έλλη Μουχτάρη - Χτίσε το προσωπικό σου brand και απόκτησε τους πελάτες που θες
wpgr
0
55
Ioannis Kastorinis - WooCommerce technical automations in the real world
wpgr
0
70
Christos Paloukas - Cache me if you can, a journey through caching layers in WordPress
wpgr
0
77
Ευάγγελος Πάλλης - Malware Cleanup & Protection
wpgr
0
89
Νίκος Μαυράκης - Κοστολογώντας τη δημιουργικότητα
wpgr
0
69
Other Decks in Programming
See All in Programming
Flutter On-device AI로 완성하는 오프라인 앱, 박제창 @DevFest INCHEON 2025
itsmedreamwalker
1
100
20 years of Symfony, what's next?
fabpot
2
350
新卒エンジニアのプルリクエスト with AI駆動
fukunaga2025
0
200
【CA.ai #3】ワークフローから見直すAIエージェント — 必要な場面と“選ばない”判断
satoaoaka
0
240
20251212 AI 時代的 Legacy Code 營救術 2025 WebConf
mouson
0
100
20251127_ぼっちのための懇親会対策会議
kokamoto01_metaps
2
430
社内オペレーション改善のためのTypeScript / TSKaigi Hokuriku 2025
dachi023
2
590
ViewファーストなRailsアプリ開発のたのしさ
sugiwe
0
450
著者と進める!『AIと個人開発したくなったらまずCursorで要件定義だ!』
yasunacoffee
0
130
안드로이드 9년차 개발자, 프론트엔드 주니어로 커리어 리셋하기
maryang
1
110
手軽に積ん読を増やすには?/読みたい本と付き合うには?
o0h
PRO
1
170
AIエンジニアリングのご紹介 / Introduction to AI Engineering
rkaga
5
2k
Featured
See All Featured
Designing for Performance
lara
610
69k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
24k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
54k
Practical Orchestrator
shlominoach
190
11k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
12
1.3k
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
GraphQLとの向き合い方2022年版
quramy
50
14k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
How STYLIGHT went responsive
nonsquared
100
6k
Documentation Writing (for coders)
carmenintech
76
5.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.8k
Typedesign – Prime Four
hannesfritz
42
2.9k
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