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
Yoav Farhi - Getting started with WP-CLI - Word...
Search
WordPress Greek Community
November 19, 2016
Programming
1
330
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
11
Andreas Karavanas - AI Supercharged Landing Pages
wpgr
0
16
Όμορφα, γρήγορα και οικονομικά websites με WordPress
wpgr
0
19
Unlocking creativity - Marilia Darilli
wpgr
0
49
Έλλη Μουχτάρη - Χτίσε το προσωπικό σου brand και απόκτησε τους πελάτες που θες
wpgr
0
33
Ioannis Kastorinis - WooCommerce technical automations in the real world
wpgr
0
49
Christos Paloukas - Cache me if you can, a journey through caching layers in WordPress
wpgr
0
55
Ευάγγελος Πάλλης - Malware Cleanup & Protection
wpgr
0
63
Νίκος Μαυράκης - Κοστολογώντας τη δημιουργικότητα
wpgr
0
44
Other Decks in Programming
See All in Programming
プロポーザル駆動学習 / Proposal-Driven Learning
mackey0225
1
100
個人軟體時代
ethanhuang13
0
280
Langfuseと歩む生成AI活用推進
licux
3
320
旅行プランAIエージェント開発の裏側
ippo012
1
600
MLH State of the League: 2026 Season
theycallmeswift
0
210
CloudflareのChat Agent Starter Kitで簡単!AIチャットボット構築
syumai
1
320
もうちょっといいRubyプロファイラを作りたい (2025)
osyoyu
0
230
ECS初心者の仲間 – TUIツール「e1s」の紹介
keidarcy
0
150
ProxyによるWindow間RPC機構の構築
syumai
1
370
JSONataを使ってみよう Step Functionsが楽しくなる実践テクニック #devio2025
dafujii
0
230
コンテキストエンジニアリング Cursor編
kinopeee
1
740
testingを眺める
matumoto
1
130
Featured
See All Featured
Done Done
chrislema
185
16k
Rails Girls Zürich Keynote
gr2m
95
14k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
The MySQL Ecosystem @ GitHub 2015
samlambert
251
13k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
185
54k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Navigating Team Friction
lara
189
15k
4 Signs Your Business is Dying
shpigford
184
22k
It's Worth the Effort
3n
187
28k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
32
1.5k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
229
22k
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