Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Hollywood WordPress - CLI For WordPress (an Introduction)

Hollywood WordPress - CLI For WordPress (an Introduction)

Presented by Mike Schroder at the Hollywood WordPress Meetup.

Introductory presentation on using the command line to make life easier for developers and designers alike.

Covers command line basics, followed by an introduction to WP-CLI for those who'd like to dig deeper and manage WordPress directly using the CLI.

Mike Schroder

July 10, 2013
Tweet

More Decks by Mike Schroder

Other Decks in Technology

Transcript

  1. CLI for WordPress an introduction Hollywood WordPress Meetup Mike Schroder

    (DH-Shredder) @GetSource - http://www.getsource.net
  2. Who Am I? • Mike Schroder, a.k.a DH-Shredder, a.k.a. @GetSource

    • Third Culture Kid, enjoy Coffee & Sailing • WordPress Core and wp-cli Contributor • Happy DreamHost Employee
  3. What do I need to run it? • SSH access

    to your WordPress install's directory • PHP 5.3+ • WordPress 3.3+ • Enough RAM for shell processes to run WordPress • Easiest on Linux & MacOS
  4. Install WP-CLI Full Instructions at http://wp-cli.org In short, from the

    root of your user: curl http://wp-cli.org/installer.sh | bash
  5. In ~/.bash_profile: if [ -f ~/.bashrc ]; then source ~/.bashrc

    fi (http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html)
  6. Or, define in your plugins. if ( defined('WP_CLI') && WP_CLI

    ) { ! include( PLUGIN_DIR . '/lib/wp-cli.php' ); }
  7. Resources! • http://wp-cli.org • http://files.fosswire.com/2007/08/fwunixref.pdf • http://getsource.net/2012/10/wp-cli-awesomeness-in-vancouver/ • http://wp.tutsplus.com/tutorials/using-wp-cli-for-fun-and-profit/ •

    http://halfelf.org/2012/command-line-wp/ • http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html Mike Schroder (DH-Shredder) @GetSource - http://www.getsource.net