+ All Categories
Home > Software > wp cli- don’t fear the command line

wp cli- don’t fear the command line

Date post: 13-Apr-2017
Category:
Upload: dwayne-mcdaniel
View: 46 times
Download: 1 times
Share this document with a friend
34
WP-CLI Don’t Fear The Command Line
Transcript
Page 1: wp cli- don’t fear the command line

WP-CLIDon’t Fear The Command Line

Page 2: 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 and webcomics● Improv● Karaoke!!!

Hi, I’m Dwayne

[email protected]

@mcdwayne on Twitter

Slides at: mcdwayne.com

Page 3: wp cli- don’t fear the command line

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

Page 4: wp cli- don’t fear the command line

Poll time

Page 5: wp cli- don’t fear the command line
Page 6: wp cli- don’t fear the command line
Page 7: wp cli- don’t fear the command line

● 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/

Page 8: wp cli- don’t fear the command line

Let the robots do the work!

Page 9: wp cli- don’t fear the command line

Let the robots do the work!

Page 10: wp cli- don’t fear the command line

Let me show you an example● Install WP-CLI● Create wp-config.php● Download WP● Install WP● Make some dummy posts https://c9.io/

Page 12: wp cli- don’t fear the command line
Page 13: wp cli- don’t fear the command line

Before the GUI

Page 14: wp cli- don’t fear the command line

There was (is) the terminal

Page 15: wp cli- don’t fear the command line

List of commands = script

Page 16: wp cli- don’t fear the command line

WordPress Command Line Interface

Page 17: wp cli- don’t fear the command line

Created and maintained by these folks

Page 18: wp cli- don’t fear the command line

http://wp-cli.org/

Page 19: wp cli- don’t fear the command line
Page 20: wp cli- don’t fear the command line

Locally or on server

Page 21: wp cli- don’t fear the command line

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

Page 22: wp cli- don’t fear the command line

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

Page 23: wp cli- don’t fear the command line

Did it work? Typing $ wpin the terminalshould produce this

Page 24: wp cli- don’t fear the command line

The hard part is over

Page 25: wp cli- don’t fear the command line
Page 26: wp cli- don’t fear the command line

● Download and Install Core● Create wp-config.php● Search-Replace● Posts● Users● Themes● Plugins● Widgets● Menu

Page 27: wp cli- don’t fear the command line

Structure of commands

wp command subcommand --flags

Page 28: wp cli- don’t fear the command line

DEMO TIMEhttps://github.com/1dwaynemcdaniel/Public

Docs/blob/master/WP-CLI-script.sh

Page 30: wp cli- don’t fear the command line

WP-CLI Within other CLIs

Page 31: wp cli- don’t fear the command line

QUESTION TIME

Page 32: wp cli- don’t fear the command line

Pantheon.io

Page 33: 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 and webcomics● Improv● Karaoke!!!

Hi, I’m Dwayne

[email protected]

@mcdwayne on Twitter

Slides at: mcdwayne.com

Page 34: wp cli- don’t fear the command line

Thanks


Recommended