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
Manage WordPress Easily With WP-CLI
Search
Ajit Bohra
November 05, 2017
Technology
590
0
Share
Manage WordPress Easily With WP-CLI
Workshop at WordCamp Nashik 2017, Ajit Bohra, Hardeep Asrani & Gagan Deep Singh
Ajit Bohra
November 05, 2017
More Decks by Ajit Bohra
See All by Ajit Bohra
Laravel x WordPress
ajitbohra
0
36
Getting Good With WordPress Playground
ajitbohra
0
96
Embracing WordPress Packages
ajitbohra
0
67
Laravel: Launcher For Your Next Big Idea
ajitbohra
1
300
LaravelLiveIn Mumbai Meetup December 2018
ajitbohra
0
68
Gutenberg For Bloggers & Developer
ajitbohra
0
48
Finding A Right Home For WordPress
ajitbohra
1
590
Tools Of Trade For WordPress Developer
ajitbohra
0
460
Making Money With WordPress
ajitbohra
0
620
Other Decks in Technology
See All in Technology
QGISプラグイン CMChangeDetector
naokimuroki
1
340
え!?初参加で 300冊以上 も頒布!? これは大成功!そのはずなのに わいの財布は 赤字 の件
hellohazime
0
160
AI駆動1on1〜AIに自分を育ててもらう〜
yoshiakiyasuda
0
120
AI時代 に増える データ活用先
takahal
0
170
The Journey of Box Building
tagomoris
4
390
クラウドネイティブな開発 ~ 認知負荷に立ち向かうためのコンテナ活用
literalice
0
110
Rebirth of Software Craftsmanship in the AI Era
lemiorhan
PRO
4
1.9k
ハーネスエンジニアリングの概要と設計思想
sergicalsix
9
4.2k
2026年、知っておくべき最新 サーバレスTips10選/serverless-10-tips
slsops
13
5.1k
Master Dataグループ紹介資料
sansan33
PRO
1
4.6k
EarthCopilotに学ぶマルチエージェントオーケストレーション
nakasho
0
270
自立を加速させる神器 - EMOasis #11
stanby_inc
0
120
Featured
See All Featured
Exploring anti-patterns in Rails
aemeredith
3
320
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
200
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
510
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
260
[SF Ruby Conf 2025] Rails X
palkan
2
960
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
The Curious Case for Waylosing
cassininazir
0
300
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2k
The #1 spot is gone: here's how to win anyway
tamaranovitovic
2
1k
Accessibility Awareness
sabderemane
0
100
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.1k
GraphQLとの向き合い方2022年版
quramy
50
15k
Transcript
Manage WordPress Easily with WP-CLI Ajit Bohra, Hardeep Asrani &
Gagan Deep Singh
How many of you are Command Line users?
How many of you are using WP-CLI?
What is WP-CLI?
Why not WP-CLI?
Which one was easier?
Expectations & Takeaways
Let’s get started!
Install WP-CLI # Install WP-CLI $ curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar #
Make the file executable $ chmod +x wp-cli.phar # Move it to somewhere in your PATH $ sudo mv wp-cli.phar /usr/local/bin/wp # Test WP-CLI. $ wp —info Source: wp-cli.org
Command Structure $ wp plugin install wordpress-seo - -activate command
subcommand parameter flag
Useful Commands
Plugin Commands: Install & Activate $ wp plugin install bbpress
- -activate
Plugin Commands: Deactivate $ wp plugin deactivate bbpress
Plugin Commands: Delete $ wp plugin delete bbpress
Theme Commands: Install & Activate $ wp theme install make
- -activate
Theme Commands: Deactivate $ wp theme deactivate make
Theme Commands: Delete $ wp theme delete make
Manage Users: List Users $ wp user list
Manage Users: Create User $ wp user create harry
[email protected]
- -role=author
Manage Users: Change Password $ wp user create bob
[email protected]
--role=author
Manage Users: Delete User $ wp user delete 10
Manage Media: Upload Media $ wp media import https://example.com/image.png
Manage Media: Regenerate Media $ wp media regenerate - -yes
Manage Posts: Create Posts $ wp post create --post_type=page --post_title='A
sample post'
Manage Posts: Edit Posts $ wp post edit 123
Manage Posts: Generate Posts $ wp post generate --count=10 --post_type=page
--post_date=1999-01-04
Export/Import Posts: Generate Posts $ wp export
Export/Import Posts: Generate Posts $ wp import example.wordpress.2016-06-21.xml --authors=create
Search/Replace $ wp search-replace ‘http://old-site.com' ‘http://new-site.com'
Now it’s your time.
Resources http://wp-cli.org/ https://developer.wordpress.org/cli/commands/ https://local.getflywheel.com/ https://commandlinepoweruser.com/ https://serversforhackers.com/ https://mediatemple.net/community/products/dv/204403684/ connecting-via-ssh-to-your-server
Thank you.