Upload
johnbickar
View
1.902
Download
0
Embed Size (px)
Citation preview
Intro to Drush
John Bickar
Cubberley Education Library
Stanford University
What’s Drush?
• http://drupal.org/project/drush
• It is and it isn’t a Drupal module
Basic Command Line Syntax
• Command
• Options
• Directory and/or target
• ls -alh ~/
• man ls– i.e., Read The Free Manpage
3 Steps
1. Download/install
2. Create alias
3. Use it!
Step 1: Install it
• 2 ways– GUI– Command Line
• curl http://ftp.drupal.org/files/projects/drush-All-Versions-2.1.tar.gz | tar zxv
• NB: There is a drush package for Debian linux; installed on Stanford servers (corn cluster)
Step 2: Create an alias
• echo $SHELL• vi .bash_profile
– If it’s not there you’ll need to create it
• alias drush=‘path/to/php path/to/drush/drush.php’
• You may need to run the command ‘source ~/.bash_profile’ for the alias to take effect
Step 3: Use it!
• cd to your Drupal install directory
• drush help
• drush dl tagadelic
• drush enable tagadelic
• drush -y disable tagadelic
• drush -s update
Drush on Techcommons
• https://techcommons.stanford.edu/topics/drupal/drush
Questions?
• Suggestions?
• Tomatoes?