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 Slide

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

    View Slide

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

    View Slide

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

    View Slide

  5. What is The Terminal?

    View Slide

  6. ❯ date

    View Slide

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

    View Slide

  8. ❯ command parameter1 parameter2 etc...

    View Slide

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

    View Slide

  10. Opening the Terminal

    View Slide

  11. View Slide

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

    View Slide

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

    View Slide

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

    View Slide

  15. A demonstration

    View Slide

  16. Questions?

    View Slide