SlideShare uma empresa Scribd logo
1 de 24
Baixar para ler offline
– A L B E R T E I N S T E I N
“Try not to become a man of success, but rather try
to become a man of value.”
H O W I S T H I S I M P O R TA N T ?
• Become Faster. You can do everything faster.
• Become More Valuable. You will become more
valuable to your employer.
• Become Fearless. You don’t have to be fearful any
longer because you’ll know how it works.
T O D AY
• If I could share with you something in a few minutes
that can save you hours, would that be valuable to
you?
A L E X
C E N T E N O
• Husband, father and son
• Director of Digital @
AndiSites.
• 15+ years of experience
building websites.
• Pollen Allergies in the
Spring
O U R A G E N D A
• Get familiar with the command line
• Introduction to WP-CLI
• Examples
W H AT I S B A S H ?
• According to Wikipedia:
• “Bash is a Unix shell and command language written by
Brian Fox…”
• “Bash is a command processor that typically runs in a
text window, where the user types commands that
cause actions“.
C O M M A N D L I N E W I T H B A S H
• It is the default login shell for most Linux distributions
and Mac OS X.
• Windows 10 users can install Bash directly now
• iTerm2
$ ls -F wp-content/themes
Name of the command
flags
arguments
S O M E O F T H E M O S T C O M M O N
C O M M A N D S :
• Ls
• Cd
• Cp
• Clear
• Pwd
• Touch
• Tar
• Zip
• Rm
• Chmod
• Mv
• Chown
• SSH
• Open
• Subl
• MySql
• Curl
• Top
D E M O T I M E - B I L L # 1
$ wp plugin install <slug> —version
Prefix for WP-CLI
Name of the command arguments
Subcommand
options
W P C L I - M O S T C O M M O N TA S K S
• Install WordPress
• Install and Activate Plugins
• Create Users / Administrate
roles
• Reset password for a particular
user
• Export and Import a Database
• Search and Replace on a
Database
• Create forms with GF-CLI
• Export form entries
• Create posts / pages
I N S TA L L W O R D P R E S S
• $ wp core download
• $ wp core config
• $ wp core install —prompt
Back
I N S TA L L A N D A C T I VAT E P L U G I N S
• wp plugin uninstall akistmet hello
• wp plugin install /Users/alexcenteno/Desktop/pr/
gravityforms_2.3.0.2.zip
• wp plugin install /Users/alexcenteno/Desktop/pr/
gravityformscli_1.0.2.zip
• wp plugin install advanced-custom-fields wordpress-seo
google-analytics-for-wordpress
• wp plugin activate —all
Back
E X P O R T A N D I M P O R T A D ATA B A S E
• wp db export <name>
• wp db drop (don’t use this unless you are ready)
• wp db import <name>
Back
S E A R C H A N D R E P L A C E D B
• wp search-replace "http://testx1.alx" "https://
testx1.alx" —dry-run
Back
U S E R C R E AT I O N
• wp user generate —count=2
• wp user create —prompt
• wp user list
• wp user set-role <user-id> administrator
Back
U S E R U P D AT I N G - PA S S W O R D
• wp user update <user_id> —user_pass=“difficult”
Back
I N S TA L L G R AV I T Y F O R M S
• wp plugin install ~/Desktop/pr/gravity-forms.zip
Back
W P C L I - O T H E R U S E S
• Create forms with Gravity Forms
• Export form entries
• Search the database
• Add capabilities to a particular role
• List capabilities of a particular role
• Generate dummy posts to work with
Q U E S T I O N S ?
alex@andisites.com
alex_centeno

Mais conteúdo relacionado

Mais procurados

WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
openchamp
 
Developing OpenResty Framework
Developing OpenResty FrameworkDeveloping OpenResty Framework
Developing OpenResty Framework
Aapo Talvensaari
 

Mais procurados (16)

Php with mysql ppt
Php with mysql pptPhp with mysql ppt
Php with mysql ppt
 
WordPress Performance optimization
WordPress Performance optimizationWordPress Performance optimization
WordPress Performance optimization
 
Getting Started With WordPress Plugin Development
Getting Started With WordPress Plugin DevelopmentGetting Started With WordPress Plugin Development
Getting Started With WordPress Plugin Development
 
Why it's dangerous to turn off automatic updates and here's how to do it
Why it's dangerous to turn off automatic updates and here's how to do itWhy it's dangerous to turn off automatic updates and here's how to do it
Why it's dangerous to turn off automatic updates and here's how to do it
 
WordPress Child Themes
WordPress Child ThemesWordPress Child Themes
WordPress Child Themes
 
Developing OpenResty Framework
Developing OpenResty FrameworkDeveloping OpenResty Framework
Developing OpenResty Framework
 
Developing OpenResty Framework
Developing OpenResty FrameworkDeveloping OpenResty Framework
Developing OpenResty Framework
 
Be a microservices hero
Be a microservices heroBe a microservices hero
Be a microservices hero
 
Web application, cookies and sessions
Web application, cookies and sessionsWeb application, cookies and sessions
Web application, cookies and sessions
 
Go & WebAssembly
Go & WebAssembly Go & WebAssembly
Go & WebAssembly
 
Seguranca em APP Rails
Seguranca em APP RailsSeguranca em APP Rails
Seguranca em APP Rails
 
Cloud Foundry Command Line
Cloud Foundry Command LineCloud Foundry Command Line
Cloud Foundry Command Line
 
Hacking Web Performance 2019
Hacking Web Performance 2019Hacking Web Performance 2019
Hacking Web Performance 2019
 
TTW FTW: Plone as the new wordpress
TTW FTW: Plone as the new wordpressTTW FTW: Plone as the new wordpress
TTW FTW: Plone as the new wordpress
 
Cache Rules Everything Around Me
Cache Rules Everything Around MeCache Rules Everything Around Me
Cache Rules Everything Around Me
 
Nanoc
NanocNanoc
Nanoc
 

Semelhante a Save 15 Minutes or More on WordPress

Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
Japheth Thomson
 
LXC to Docker Via Continuous Delivery
LXC to Docker Via Continuous DeliveryLXC to Docker Via Continuous Delivery
LXC to Docker Via Continuous Delivery
Docker, Inc.
 
Best practices-wordpress-enterprise
Best practices-wordpress-enterpriseBest practices-wordpress-enterprise
Best practices-wordpress-enterprise
Taylor Lovett
 
WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
Joe Casabona
 

Semelhante a Save 15 Minutes or More on WordPress (20)

WordPress CLI in-depth
WordPress CLI in-depthWordPress CLI in-depth
WordPress CLI in-depth
 
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
Migrating a Site Quickly with SSH and WP-CLI (It's not as scary as you think!)
 
Introduction to WordPress Hooks 2016
Introduction to WordPress Hooks 2016Introduction to WordPress Hooks 2016
Introduction to WordPress Hooks 2016
 
There's No Crying In Wordpress! (an intro to WP)
There's No Crying In Wordpress! (an intro to WP)There's No Crying In Wordpress! (an intro to WP)
There's No Crying In Wordpress! (an intro to WP)
 
LXC to Docker Via Continuous Delivery
LXC to Docker Via Continuous DeliveryLXC to Docker Via Continuous Delivery
LXC to Docker Via Continuous Delivery
 
Best practices-wordpress-enterprise
Best practices-wordpress-enterpriseBest practices-wordpress-enterprise
Best practices-wordpress-enterprise
 
Save Time by Managing WordPress from the Command Line
Save Time by Managing WordPress from the Command LineSave Time by Managing WordPress from the Command Line
Save Time by Managing WordPress from the Command Line
 
Using multi-tenant WordPress to simplify development
Using multi-tenant WordPress to simplify developmentUsing multi-tenant WordPress to simplify development
Using multi-tenant WordPress to simplify development
 
Best Practices for WordPress in Enterprise
Best Practices for WordPress in EnterpriseBest Practices for WordPress in Enterprise
Best Practices for WordPress in Enterprise
 
Administer WordPress with WP-CLI
Administer WordPress with WP-CLIAdminister WordPress with WP-CLI
Administer WordPress with WP-CLI
 
WP-CLI - WordCamp Miami 2015
WP-CLI - WordCamp Miami 2015WP-CLI - WordCamp Miami 2015
WP-CLI - WordCamp Miami 2015
 
Beyond FTP: What I’ve Learned from Years of Deploying WordPress the Wrong Way
Beyond FTP:  What I’ve Learned from Years of Deploying WordPress the Wrong WayBeyond FTP:  What I’ve Learned from Years of Deploying WordPress the Wrong Way
Beyond FTP: What I’ve Learned from Years of Deploying WordPress the Wrong Way
 
NEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & SecurityNEPA BlogCon 2013 - WordPress Customization & Security
NEPA BlogCon 2013 - WordPress Customization & Security
 
WordPress Customization and Security
WordPress Customization and SecurityWordPress Customization and Security
WordPress Customization and Security
 
Holy PowerShell, BATman! - dogfood edition
Holy PowerShell, BATman! - dogfood editionHoly PowerShell, BATman! - dogfood edition
Holy PowerShell, BATman! - dogfood edition
 
TechUG Glasgow talk 22/Feb/17 Configuration Management Best Practices
TechUG Glasgow talk 22/Feb/17 Configuration Management Best PracticesTechUG Glasgow talk 22/Feb/17 Configuration Management Best Practices
TechUG Glasgow talk 22/Feb/17 Configuration Management Best Practices
 
WordPress APIs
WordPress APIsWordPress APIs
WordPress APIs
 
Deployments in one click!
Deployments in one click!Deployments in one click!
Deployments in one click!
 
High Performance Drupal
High Performance DrupalHigh Performance Drupal
High Performance Drupal
 
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
Gestione avanzata di WordPress con WP-CLI - WordCamp Torino 2017 - Andrea Car...
 

Último

在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
ydyuyu
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Monica Sydney
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
ydyuyu
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
F
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
ayvbos
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Monica Sydney
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 

Último (20)

APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查在线制作约克大学毕业证(yu毕业证)在读证明认证可查
在线制作约克大学毕业证(yu毕业证)在读证明认证可查
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime BalliaBallia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
Ballia Escorts Service Girl ^ 9332606886, WhatsApp Anytime Ballia
 
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime NagercoilNagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
 
Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu DhabiAbu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
Abu Dhabi Escorts Service 0508644382 Escorts in Abu Dhabi
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理一比一原版奥兹学院毕业证如何办理
一比一原版奥兹学院毕业证如何办理
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency""Boost Your Digital Presence: Partner with a Leading SEO Agency"
"Boost Your Digital Presence: Partner with a Leading SEO Agency"
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
20240507 QFM013 Machine Intelligence Reading List April 2024.pdf
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...Local Call Girls in Seoni  9332606886 HOT & SEXY Models beautiful and charmin...
Local Call Girls in Seoni 9332606886 HOT & SEXY Models beautiful and charmin...
 

Save 15 Minutes or More on WordPress

  • 1.
  • 2. – A L B E R T E I N S T E I N “Try not to become a man of success, but rather try to become a man of value.”
  • 3. H O W I S T H I S I M P O R TA N T ? • Become Faster. You can do everything faster. • Become More Valuable. You will become more valuable to your employer. • Become Fearless. You don’t have to be fearful any longer because you’ll know how it works.
  • 4. T O D AY • If I could share with you something in a few minutes that can save you hours, would that be valuable to you?
  • 5.
  • 6. A L E X C E N T E N O • Husband, father and son • Director of Digital @ AndiSites. • 15+ years of experience building websites. • Pollen Allergies in the Spring
  • 7. O U R A G E N D A • Get familiar with the command line • Introduction to WP-CLI • Examples
  • 8. W H AT I S B A S H ? • According to Wikipedia: • “Bash is a Unix shell and command language written by Brian Fox…” • “Bash is a command processor that typically runs in a text window, where the user types commands that cause actions“.
  • 9. C O M M A N D L I N E W I T H B A S H • It is the default login shell for most Linux distributions and Mac OS X. • Windows 10 users can install Bash directly now • iTerm2
  • 10. $ ls -F wp-content/themes Name of the command flags arguments
  • 11. S O M E O F T H E M O S T C O M M O N C O M M A N D S : • Ls • Cd • Cp • Clear • Pwd • Touch • Tar • Zip • Rm • Chmod • Mv • Chown • SSH • Open • Subl • MySql • Curl • Top
  • 12. D E M O T I M E - B I L L # 1
  • 13.
  • 14. $ wp plugin install <slug> —version Prefix for WP-CLI Name of the command arguments Subcommand options
  • 15. W P C L I - M O S T C O M M O N TA S K S • Install WordPress • Install and Activate Plugins • Create Users / Administrate roles • Reset password for a particular user • Export and Import a Database • Search and Replace on a Database • Create forms with GF-CLI • Export form entries • Create posts / pages
  • 16. I N S TA L L W O R D P R E S S • $ wp core download • $ wp core config • $ wp core install —prompt Back
  • 17. I N S TA L L A N D A C T I VAT E P L U G I N S • wp plugin uninstall akistmet hello • wp plugin install /Users/alexcenteno/Desktop/pr/ gravityforms_2.3.0.2.zip • wp plugin install /Users/alexcenteno/Desktop/pr/ gravityformscli_1.0.2.zip • wp plugin install advanced-custom-fields wordpress-seo google-analytics-for-wordpress • wp plugin activate —all Back
  • 18. E X P O R T A N D I M P O R T A D ATA B A S E • wp db export <name> • wp db drop (don’t use this unless you are ready) • wp db import <name> Back
  • 19. S E A R C H A N D R E P L A C E D B • wp search-replace "http://testx1.alx" "https:// testx1.alx" —dry-run Back
  • 20. U S E R C R E AT I O N • wp user generate —count=2 • wp user create —prompt • wp user list • wp user set-role <user-id> administrator Back
  • 21. U S E R U P D AT I N G - PA S S W O R D • wp user update <user_id> —user_pass=“difficult” Back
  • 22. I N S TA L L G R AV I T Y F O R M S • wp plugin install ~/Desktop/pr/gravity-forms.zip Back
  • 23. W P C L I - O T H E R U S E S • Create forms with Gravity Forms • Export form entries • Search the database • Add capabilities to a particular role • List capabilities of a particular role • Generate dummy posts to work with
  • 24. Q U E S T I O N S ? alex@andisites.com alex_centeno