Ce diaporama a bien été signalé.
Nous utilisons votre profil LinkedIn et vos données d’activité pour vous proposer des publicités personnalisées et pertinentes. Vous pouvez changer vos préférences de publicités à tout moment.
WP-CLI
Don’t Fear The Command Line
Agency and Community Success
Manager At Pantheon Since 2014
Some things I enjoy, aside from
tech and improv:
● Comic books...
Elastic Hosting
+
Web Development
Tools for Teams
● WordPress Optimized Hosting
● Advanced Caching
● Automated DevOps
● Hi...
Poll time
● Do you find yourself doing
the same tasks over and
over in your WordPress
projects?
● Is there a particular way you
set ...
Let the robots do the work!
Let the robots do the work!
Let me show you an example
● Install WP-CLI
● Create wp-config.php
● Download WP
● Install WP
● Make some dummy posts http...
Before the GUI
There was (is) the terminal
List of commands = script
WordPress Command Line
Interface
Created and maintained by these folks
http://wp-cli.org/
Locally or on server
Things you will need:
Bash
UNIX-like environment (OS X, Linux, FreeBSD or
‘Bash on Ubuntu on Windows’)
SSH Access
PHP 5.3....
How you install it from the command line:
Download it:
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-
pages/p...
Did it work?
Typing
$ wp
in the terminal
should produce this
The hard part is over
● Download and Install Core
● Create wp-config.php
● Search-Replace
● Posts
● Users
● Themes
● Plugins
● Widgets
● Menu
Structure of commands
wp command subcommand --flags
DEMO TIME
https://github.com/1dwaynemcdaniel/Public
Docs/blob/master/WP-CLI-script.sh
http://wp-cli.org/docs/tools/
http://wp-cli.org/docs/commands-cookbook/
WP-CLI Within other CLIs
QUESTION TIME
Pantheon.io
Agency and Community Success
Manager At Pantheon Since 2014
Some things I enjoy, aside from
tech and improv:
● Comic books...
Thanks
wp cli- don’t fear the command line
wp cli- don’t fear the command line
wp cli- don’t fear the command line
wp cli- don’t fear the command line
wp cli- don’t fear the command line
wp cli- don’t fear the command line
Prochain SlideShare
Chargement dans…5
×

wp cli- don’t fear the command line

819 vues

Publié le

My talk from #WCSD

Publié dans : Logiciels
  • Soyez le premier à commenter

  • Soyez le premier à aimer ceci

wp cli- don’t fear the command line

  1. 1. WP-CLI Don’t Fear The Command Line
  2. 2. Agency and Community Success Manager At Pantheon Since 2014 Some things I enjoy, aside from tech and improv: ● Comic books and webcomics ● Improv ● Karaoke!!! Hi, I’m Dwayne dwayne@pantheon.io @mcdwayne on Twitter Slides at: mcdwayne.com
  3. 3. Elastic Hosting + Web Development Tools for Teams ● WordPress Optimized Hosting ● Advanced Caching ● Automated DevOps ● Highly Secure ● Dev, Test, and Live ● Cloud Environments ● Permissions & Security ● Cloud Integration Tools
  4. 4. Poll time
  5. 5. ● Do you find yourself doing the same tasks over and over in your WordPress projects? ● Is there a particular way you set up WordPress for each new project? ● Is there a common problem you find yourself fixing for clients over and over? https://www.godaddy.com/garage/webpro/wordpress/how-to-use-wp-cli/
  6. 6. Let the robots do the work!
  7. 7. Let the robots do the work!
  8. 8. Let me show you an example ● Install WP-CLI ● Create wp-config.php ● Download WP ● Install WP ● Make some dummy posts https://c9.io/
  9. 9. Before the GUI
  10. 10. There was (is) the terminal
  11. 11. List of commands = script
  12. 12. WordPress Command Line Interface
  13. 13. Created and maintained by these folks
  14. 14. http://wp-cli.org/
  15. 15. Locally or on server
  16. 16. Things you will need: Bash UNIX-like environment (OS X, Linux, FreeBSD or ‘Bash on Ubuntu on Windows’) SSH Access PHP 5.3.29 or later
  17. 17. How you install it from the command line: Download it: curl -O https://raw.githubusercontent.com/wp-cli/builds/gh- pages/phar/wp-cli.phar Set permissions: chmod +x wp-cli.phar Move it somewhere useful: sudo mv wp-cli.phar /usr/local/bin/wp
  18. 18. Did it work? Typing $ wp in the terminal should produce this
  19. 19. The hard part is over
  20. 20. ● Download and Install Core ● Create wp-config.php ● Search-Replace ● Posts ● Users ● Themes ● Plugins ● Widgets ● Menu
  21. 21. Structure of commands wp command subcommand --flags
  22. 22. DEMO TIME https://github.com/1dwaynemcdaniel/Public Docs/blob/master/WP-CLI-script.sh
  23. 23. http://wp-cli.org/docs/tools/ http://wp-cli.org/docs/commands-cookbook/
  24. 24. WP-CLI Within other CLIs
  25. 25. QUESTION TIME
  26. 26. Pantheon.io
  27. 27. Agency and Community Success Manager At Pantheon Since 2014 Some things I enjoy, aside from tech and improv: ● Comic books and webcomics ● Improv ● Karaoke!!! Hi, I’m Dwayne dwayne@pantheon.io @mcdwayne on Twitter Slides at: mcdwayne.com
  28. 28. Thanks

×