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

WP CLI

WP CLI

Given at MWUG 2014, this talk covers the basics of terminal use and WP CLI

Tom J Nowell

August 20, 2014
Tweet

More Decks by Tom J Nowell

Other Decks in Programming

Transcript

  1. WP CLI
    A talk by Tom J Nowell

    View full-size slide

  2. I’m Tom J Nowell
    Code For The People

    View full-size slide

  3. I’ll Cover
    ● What is WP CLI
    ● What’s a Command Line
    ● Running a command
    ● WP CLI Commands

    View full-size slide

  4. WP CLI
    WordPress, Command Line Interface
    A tool for terminal users

    View full-size slide

  5. What is The Terminal?

    View full-size slide

  6. ❯ date
    Wed 20 Aug 2014 17:46:41 BST

    View full-size slide

  7. ❯ command parameter1 parameter2 etc...

    View full-size slide

  8. Essential Commands
    ● ls what’s inside this folder
    ● cd foldername change into another folder
    ● cd .. go up one folder

    View full-size slide

  9. Opening the Terminal

    View full-size slide

  10. Once installed, open your WordPress folder on
    the terminal
    GIF by Chris Coyier of CSS Tricks

    View full-size slide

  11. Some of the Things WP CLI Can Do
    ● Create Posts
    ● Create Users
    ● Download plugins and themes
    ● Database Queries
    ● Installing WordPress

    View full-size slide

  12. E.g. Adding an author to a site:
    ❯ wp user create bob [email protected]
    --role=author

    View full-size slide

  13. A demonstration

    View full-size slide