Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Intro to Drush

2,079 views

Published on

Published in: Education, Technology
  • Be the first to comment

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>

×