command line basics for drupal site builders hi i m tara
play

Command Line Basics for Drupal Site Builders Hi, I'm Tara Developer - PowerPoint PPT Presentation

Command Line Basics for Drupal Site Builders Hi, I'm Tara Developer Outreach Manager at Pantheon @sparklingrobots PANTHEON.IO tara.king@pantheon.io Some things I enjoy away from the computer: Books: https://is.gd/tara_books


  1. Command Line Basics for Drupal Site Builders

  2. Hi, I'm Tara Developer Outreach Manager at Pantheon ● @sparklingrobots PANTHEON.IO ● tara.king@pantheon.io Some things I enjoy away from the computer: ○ Books: https://is.gd/tara_books ○ MañanaCon ○ Diversity, inclusion & equity in FOSS

  3. @sparklingrobots PANTHEON.IO Who this talk is for

  4. AGENDA 01/ Why command-line tools? 02/ Fundamental concepts PANTHEON.IO 03/ Files & file permissions 04/ Text editors 05/ Version control 06/ WP-CLI

  5. @sparklingrobots PANTHEON.IO What is the command line?

  6. @sparklingrobots PANTHEON.IO What is the command line?

  7. @sparklingrobots

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

  9. @sparklingrobots PANTHEON.IO GUI vs. CLI

  10. @sparklingrobots @sparklingrobots Why learn the command line? Speed PANTHEON.IO Efficiency Automation ฀฀ Looking Awesome

  11. @sparklingrobots PANTHEON.IO Be careful.

  12. @sparklingrobots PANTHEON.IO But: Don’t panic.

  13. @sparklingrobots PANTHEON.IO THE VERY, VERY, VERY BASICS Command-line fundamentals

  14. @sparklingrobots @sparklingrobots How to open the terminal: Mac OS X: PANTHEON.IO Applications > Utilities > Terminal Linux: Applications > System > Terminal

  15. @sparklingrobots PANTHEON.IO

  16. @sparklingrobots Anatomy of a Command PANTHEON.IO https://www.learnenough.com/command-line-tutorial

  17. @sparklingrobots PANTHEON.IO

  18. @sparklingrobots pwd PANTHEON.IO p rint w orking d irectory

  19. @sparklingrobots ls PANTHEON.IO Lists files in a directory

  20. @sparklingrobots ls -al -a = all PANTHEON.IO -l = long format

  21. @sparklingrobots ???? PANTHEON.IO

  22. @sparklingrobots Owner Group Everyone else PANTHEON.IO Read Write eXecute

  23. @sparklingrobots PANTHEON.IO

  24. @sparklingrobots . = Current directory PANTHEON.IO .. = Parent directory

  25. @sparklingrobots root = / PANTHEON.IO home = ~

  26. @sparklingrobots cd modules/contrib PANTHEON.IO c hange into d irectory

  27. @sparklingrobots cp wp-config-sample.php wp-config.php PANTHEON.IO c o p y

  28. @sparklingrobots rm style.css PANTHEON.IO r e m ove file (or directory)

  29. @sparklingrobots mkdir child-theme PANTHEON.IO m a k e dir ectory

  30. @sparklingrobots How to learn more 1. Google it. PANTHEON.IO 2. Check the man page ( man ls ). 3. Try -h , --help , -v ( php --help ) .

  31. @sparklingrobots PANTHEON.IO Text Editors

  32. @sparklingrobots Text Editors PANTHEON.IO ● vim ● nano ● emacs ● ....and many more!

  33. @sparklingrobots PANTHEON.IO The best text editor is the one you use.

  34. @sparklingrobots nano PANTHEON.IO open nano

  35. @sparklingrobots PANTHEON.IO

  36. @sparklingrobots PANTHEON.IO Connecting to other computers

  37. @sparklingrobots PANTHEON.IO FTP vs. SFTP vs. SSH

  38. @sparklingrobots F ile T ransfer P rotocol PANTHEON.IO vs. S ecure F ile T ransfer Protocol

  39. @sparklingrobots S ecure F ile T ransfer P rotocol PANTHEON.IO vs. S ecure Sh ell

  40. @sparklingrobots PANTHEON.IO SSH Keys https://pantheon.io/docs/ssh-keys

  41. @sparklingrobots PANTHEON.IO Version Control

  42. @sparklingrobots MyCoolProject.txt MyCoolProject2.txt MyCoolProject3.txt MyCoolProject3b.txt PANTHEON.IO MyCoolProject3bTara.txt MyCoolProject3bTaraSteve.txt MyCoolProjectFinal.txt MyCoolProjectFinalFinal.txt MyCoolProjectFinalFinal2LastChangeIPr omise.txt

  43. @sparklingrobots PANTHEON.IO Git

  44. @sparklingrobots PANTHEON.IO OH MY! https://git-scm.com/about

  45. PANTHEON.IO What is Drush?

  46. @sparklingrobots drush user-create tara PANTHEON.IO --mail="tara.king@pantheon.io"

  47. @sparklingrobots drush user-add-role PANTHEON.IO “admin” tara.king@pantheon.io

  48. @sparklingrobots PANTHEON.IO drush uli

  49. @sparklingrobots drush dl claro PANTHEON.IO

  50. @sparklingrobots drush en claro -y PANTHEON.IO

  51. @sparklingrobots PANTHEON.IO drush config-import

  52. @sparklingrobots drush up drupal PANTHEON.IO

  53. @sparklingrobots drush sql-sanitize PANTHEON.IO --sanitize-password=no

  54. @sparklingrobots wp search-replace "://test.example.com" PANTHEON.IO "://live.example.com" --all-tables --verbose

  55. @sparklingrobots wp db size --tables PANTHEON.IO

  56. @sparklingrobots PANTHEON.IO How to Install Drush

  57. @sparklingrobots PANTHEON.IO https://drushcommands.com/

  58. @sparklingrobots PANTHEON.IO Using Drush remotely

  59. @sparklingrobots PANTHEON.IO Custom commands

  60. @sparklingrobots What comes next? Composer! ● Drupal Console! ● PANTHEON.IO And so much more! ●

  61. @sparklingrobots PANTHEON.IO http://bit.ly/DCGLO-CLI

  62. @sparklingrobots Credit: PANTHEON.IO Kyle Taylor, Sarah German, Jose Castaneda

  63. Thank You! Tara King Developer Outreach Manager, Pantheon @sparklingrobots

  64. @sparklingrobots Resources: TUTORIALS : HOME : https://www.davidbaumgold.com/tutorials/command-li https://www.quora.com/What-is-the-difference-between ne -the-Home-directory-... https://www.learnenough.com/command-line-tutorial SSH : http://blog.robertelder.org/what-is-ssh/ FIND THE TERMINAL: VERSION CONTROL : PANTHEON.IO https://blog.teamtreehouse.com/introduction-to-the-ma https://betterexplained.com/articles/a-visual-guide-to-v c-os-x-command-line (Mac OS X) ersion-control/ https://www.youtube.com/watch?v=rLayF5HMHIg TEXT EDITOR: (Ubuntu) https://www.howtogeek.com/howto/42980/the-beginne rs-guide-to-nano-the-li... NAVIGATION : https://www.davidbaumgold.com/tutorials/command-li SSH KEYS: ne/#moving-around-the-... https://help.github.com/articles/generating-a-new-ssh-k ey-and-adding-it-... ROOT : http://www.linfo.org/root_directory.html DRUSH: https://drushcommands.com/ INSTALL DRUSH: https://docs.drush.org/en/8.x/install/

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend