0
Intro to Drush John Bickar Cubberley Education Library Stanford University
What’s Drush? <ul><li>http://drupal.org/project/drush </li></ul><ul><li>It is and it isn’t a Drupal module </li></ul>
Basic Command Line Syntax <ul><li>Command </li></ul><ul><li>Options </li></ul><ul><li>Directory and/or target </li></ul><u...
3 Steps <ul><li>Download/install </li></ul><ul><li>Create alias </li></ul><ul><li>Use it! </li></ul>
Step 1: Install it <ul><li>2 ways </li></ul><ul><ul><li>GUI </li></ul></ul><ul><ul><li>Command Line </li></ul></ul><ul><li...
Step 2: Create an alias <ul><li>echo $SHELL </li></ul><ul><li>vi .bash_profile </li></ul><ul><ul><li>If it’s not there you...
Step 3: Use it! <ul><li>cd to your Drupal install directory </li></ul><ul><li>drush help </li></ul><ul><li>drush dl tagade...
Drush on Techcommons <ul><li>https://techcommons.stanford.edu/topics/drupal/drush </li></ul>
Questions? <ul><li>Suggestions? </li></ul><ul><li>Tomatoes? </li></ul>
Contact Me <ul><li>John Bickar </li></ul><ul><li>[email_address] </li></ul><ul><li>cubbtech on d.o </li></ul>
Upcoming SlideShare
Loading in...5
×

Intro to Drush

1,910

Published on

Published in: Education, Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,910
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
12
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide
  • John Bickar User Services Technology Specialist, Cubberley Education Library
  • Transcript of "Intro to Drush"

    1. 1. Intro to Drush John Bickar Cubberley Education Library Stanford University
    2. 2. What’s Drush? <ul><li>http://drupal.org/project/drush </li></ul><ul><li>It is and it isn’t a Drupal module </li></ul>
    3. 3. Basic Command Line Syntax <ul><li>Command </li></ul><ul><li>Options </li></ul><ul><li>Directory and/or target </li></ul><ul><li>ls -alh ~/ </li></ul><ul><li>man ls </li></ul><ul><ul><li>i.e., Read The Free Manpage </li></ul></ul>
    4. 4. 3 Steps <ul><li>Download/install </li></ul><ul><li>Create alias </li></ul><ul><li>Use it! </li></ul>
    5. 5. Step 1: Install it <ul><li>2 ways </li></ul><ul><ul><li>GUI </li></ul></ul><ul><ul><li>Command Line </li></ul></ul><ul><li>curl http://ftp.drupal.org/files/projects/drush-All-Versions-2.1.tar.gz | tar zxv </li></ul><ul><li>NB: There is a drush package for Debian linux; installed on Stanford servers (corn cluster) </li></ul>
    6. 6. Step 2: Create an alias <ul><li>echo $SHELL </li></ul><ul><li>vi .bash_profile </li></ul><ul><ul><li>If it’s not there you’ll need to create it </li></ul></ul><ul><li>alias drush=‘path/to/php path/to/drush/drush.php’ </li></ul><ul><li>You may need to run the command ‘source ~/.bash_profile’ for the alias to take effect </li></ul>
    7. 7. Step 3: Use it! <ul><li>cd to your Drupal install directory </li></ul><ul><li>drush help </li></ul><ul><li>drush dl tagadelic </li></ul><ul><li>drush enable tagadelic </li></ul><ul><li>drush -y disable tagadelic </li></ul><ul><li>drush -s update </li></ul>
    8. 8. Drush on Techcommons <ul><li>https://techcommons.stanford.edu/topics/drupal/drush </li></ul>
    9. 9. Questions? <ul><li>Suggestions? </li></ul><ul><li>Tomatoes? </li></ul>
    10. 10. Contact Me <ul><li>John Bickar </li></ul><ul><li>[email_address] </li></ul><ul><li>cubbtech on d.o </li></ul>
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×