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- intro and basics

138 views

Published on

Presentation I did for Fresno Meetup Group 12/20

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Wp cli- intro and basics

  1. 1. Introduction To The WP-CLI The why, the what and the how
  2. 2. Pantheon.io Agency and Community Success Manager At Pantheon Since 2014 dwayne@pantheon.io mcdwayne.com Some things I enjoy, aside from tech: ● Improv ● Comic books ● Karaoke!!! Hi, I’m Dwayne
  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. Pantheon.io Yes, cable cars are right outside
  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 me show you an example ● Install WP-CLI ● Create wp-config.php ● Download WP ● Install WP ● Make some dummy posts https://c9.io/
  8. 8. Before the GUI
  9. 9. There was (is) the terminal
  10. 10. List of commands = script
  11. 11. WordPress Command Line Interface
  12. 12. Created and maintained by these folks
  13. 13. http://wp-cli.org/
  14. 14. Locally or on server
  15. 15. Things you will need: UNIX-like environment (OS X, Linux, FreeBSD) SSH Access PHP 5.3.29 or later
  16. 16. 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
  17. 17. Did it work? Typing $ wp in the terminal should produce this
  18. 18. The hard part is over
  19. 19. ● Download and Install Core ● Create wp-config.php ● Search-Replace ● Posts ● Users ● Themes ● Plugins ● Widgets ● Menu
  20. 20. Structure of commands wp command subcommand --flags
  21. 21. DEMO TIME https://github.com/1dwaynemcdaniel/Public Docs/blob/master/WP-CLI-script.sh
  22. 22. http://wp-cli.org/docs/tools/ http://wp-cli.org/docs/commands-cookbook/
  23. 23. WP-CLI Within other CLIs
  24. 24. QUESTION TIME
  25. 25. Pantheon.io Agency and Community Success Manager At Pantheon Since 2014 San Francisco Based Improv Actor And Producer Since Beginning of 2010 dwayne@pantheon.io @mcdwayne on Twitter Blog Some things I enjoy, aside from tech and improv: ● Comic books ● Karaoke!!! Thanks, again I’m Dwayne
  26. 26. Thanks

×