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

Tales from the Command Line

Doug Stewart
September 13, 2015

Tales from the Command Line

Doug Stewart at WordCamp DFW 2015.

Doug Stewart

September 13, 2015
Tweet

More Decks by Doug Stewart

Other Decks in Technology

Transcript

  1. Doug Stewart | @zamoose #wcdfw – https://en.wikipedia.org/wiki/Command-line_interface “A command-line interface

    […] is a means of interacting with a computer program where the user (or client) issues commands to the program in the form of successive lines of text (command lines).”
  2. Doug Stewart | @zamoose #wcdfw Zork (It was like “Myst”

    only your mind made the abstract art.)
  3. Name | @twitter #hashtag | url:slides.com Running a CLI •

    Mac: • /Applications/Utilities/Terminal.app • Windows: • Start->Search->Type “Command Prompt” • Linux: • Why are you even here?
  4. Doug Stewart | @zamoose #wcdfw – https://en.wikipedia.org/wiki/Shell_(computing) “In computing, a

    shell is a user interface for access to an operating system's services. In general, operating system shells use either a command-line interface (CLI) or graphical user interface (GUI), depending on a computer's role and particular operation.”
  5. Doug Stewart | @zamoose #wcdfw Basically, a shell takes your

    text input and interprets it into something the computer can act on.
  6. Name | @twitter #hashtag | url:slides.com Shells (cont.) • Windows:

    • PowerShell • Mac/Linux: • Almost assuredly BASH by default
  7. Name | @twitter #hashtag | url:slides.com Getting Around • “Look”:

    ls (Linux/Mac), dir (Windows) • “Move”: cd • “Copy”: cp • “Look inside”: less (Linux/Mac), gc (Windows)
  8. Doug Stewart | @zamoose #wcdfw This means you no longer

    have to be right there to do something useful.
  9. Doug Stewart | @zamoose #wcdfw You are standing in an

    empty directory. Your exits are: up ! > wp start adventure
  10. Doug Stewart | @zamoose #wcdfw • 1&1 • Amimoto •

    Bluehost • Cloudways • Dreamhost • Kinsta • Media Temple • NearlyFreeSpeech.NET • Pantheon • Site5 • SiteGround • Synthesis • TVC.Net • WordPress.com VIP • GoDaddy
  11. Name | @twitter #hashtag | url:slides.com Getting Started • wp

    help • wp core download • wp core config • wp core update • wp core update-db
  12. Name | @twitter #hashtag | url:slides.com Users • wp user

    list • wp user create • wp user generate
  13. Name | @twitter #hashtag | url:slides.com Plugins • wp plugin

    list • wp plugin install • wp plugin activate • wp plugin deactivate • wp plugin update
  14. Name | @twitter #hashtag | url:slides.com Themes • wp theme

    list • wp theme install • wp theme activate • wp theme update
  15. Name | @twitter #hashtag | url:slides.com Posts • wp post

    list • wp post create • curl http://loripsum.net/api/5 | wp post generate -- post_content —count=[one hojillion]
  16. Name | @twitter #hashtag | url:slides.com Scaffold • wp scaffold

    child-theme • wp scaffold plugin • wp scaffold post-type • wp scaffold _s • wp scaffold taxonomy
  17. Name | @twitter #hashtag | url:slides.com …And More • export

    • import • db • search-replace • comment • cron • cap
  18. Name | @twitter #hashtag | url:slides.com Practice • Connect to

    your web host using SSH • Set up a DigitalOcean “droplet” and connect to it • Set up Vagrant and VirtualBox • https://try.github.io
  19. Name | @twitter #hashtag | url:slides.com WordPress Vagrants • VVV:

    https://github.com/Varying-Vagrant-Vagrants/ VVV • HGV: https://github.com/wpengine/hgv • Chassis: https://github.com/Chassis/Chassis • VIP Quickstart: https://github.com/Automattic/vip- quickstart
  20. Doug Stewart | @zamoose #wcdfw 1.Download and install Vagrant 2.Download

    and install a VM program 3.Download and install Git 4.Grab a WordPress Vagrant project
  21. Doug Stewart | @zamoose #wcdfw • http://faculty.georgetown.edu/irvinem/theory/ Stephenson-CommandLine-1999.pdf • http://www.cryptonomicon.com/beginning.html

    • https://www.digitalocean.com/community/tutorials/ how-to-use-wp-cli-to-manage-your-wordpress-site- from-the-command-line