Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

wp cli- don’t fear the command line

783 views

Published on

My talk from #WCSD

Published in: Software
  • Be the first to comment

  • Be the first to like this

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

×