command line basics for drupal site builders tara king
play

Command Line Basics for Drupal Site Builders Tara King Customer - PowerPoint PPT Presentation

Command Line Basics for Drupal Site Builders Tara King Customer Service Engineer, Pantheon Leadership Team, Drupal Diversity & Inclusion @sparklingrobots d.o/sparklingrobots Tara King Customer Success Engineer, Pantheon


  1. Command Line Basics for Drupal Site Builders

  2. Tara King Customer Service Engineer, Pantheon Leadership Team, Drupal Diversity & Inclusion @sparklingrobots d.o/sparklingrobots

  3. Tara King Customer Success Engineer, Pantheon @sparklingrobots d.o: sparklingrobots

  4. Who this talk is for

  5. After this session, you’ll know: ● How to find the terminal. ● How to navigate your files. ● How to get help when you get stuck.

  6. #SiteBuilderCLI

  7. Why should site builders learn to Unimaginable use the power! command line?

  8. Operating Systems ● Linux & other *nix systems ● Mac OS X ● Windows (Sorry!)

  9. For Windows Users: Cygwin: https://www.cygwin.com/

  10. Don’t Panic.

  11. What is the command line?

  12. The command line is, at its heart, simply a place where you type commands to the computer. -David Baumgold

  13. Be careful!

  14. Terminal, console, shell Mac OS X > Applications > Utilities > Terminal Ubuntu Linux > Applications > System > Terminal

  15. Anatomy of a command From https://www.learnenough.com/command-line-tutorial

  16. Navigation

  17. Navigation

  18. Current & Parent Directory . = current dir .. = parent dir

  19. root vs. home root = / home = ~

  20. ls Lists all files in a directory ls -al -a = all of them -l = long format

  21. Useful commands cd sites/default/files = c hange into d irectory cp example.settings.php settings.php = c o p y rm mytemplate.html.twig = r e m ove file or directory mkdir my_theme = m a k e dir ectory for new theme pwd = p rint w orking d irectory

  22. How can I learn more? 1. Google it. 2. Check the man page ( man ls ). 3. Try using -h , --help , -v ( php help ) .

  23. Text Editors

  24. vim nano Text Editors vi less emacs ....and many more!

  25. The best text editor is the one you use.

  26. How to open nano nano file.txt

  27. Connecting to other computers

  28. FTP/SFTP File Transfer Protocol / Secure File Transfer Protocol

  29. SSH ( S ecure Sh ell)

  30. ssh-keygen

  31. Version control

  32. What is version control? MyCoolProject.txt MyCoolProject2.txt MyCoolProject3.txt MyCoolProject3b.txt MyCoolProjectFinal.txt MyCoolProjectFinalFinal.txt MyCoolProjectFinalFinal2LastChangeIPromise.txt

  33. Let’s see it in action...

  34. Deep Dive! Let’s Learn Git: No More Excuses October 27, 3:45 PM-4:30 PM Tilden Dwayne McDaniel

  35. Drush

  36. A Command Line What’s Drush? Shell For Drupal

  37. A (short) list of things Drush does... Install/update Drupal core & contrib modules Change passwords or log-in to your site Clear caches Export/import configuration ...and much, much more!

  38. Install a new module

  39. Composer, MySQL...and beyond!

  40. Resources: http://bit.ly/SiteBuilderCLI

  41. Questions!

Recommend


More recommend