10
Intro to Drush John Bickar Cubberley Education Library Stanford University

Intro to Drush

Embed Size (px)

Citation preview

Page 1: Intro to Drush

Intro to Drush

John Bickar

Cubberley Education Library

Stanford University

Page 2: Intro to Drush

What’s Drush?

• http://drupal.org/project/drush

• It is and it isn’t a Drupal module

Page 3: Intro to Drush

Basic Command Line Syntax

• Command

• Options

• Directory and/or target

• ls -alh ~/

• man ls– i.e., Read The Free Manpage

Page 4: Intro to Drush

3 Steps

1. Download/install

2. Create alias

3. Use it!

Page 5: Intro to Drush

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)

Page 6: Intro to Drush

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

Page 7: Intro to Drush

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

Page 8: Intro to Drush

Drush on Techcommons

• https://techcommons.stanford.edu/topics/drupal/drush

Page 9: Intro to Drush

Questions?

• Suggestions?

• Tomatoes?

Page 10: Intro to Drush

Contact Me

• John Bickar

[email protected]

• cubbtech on d.o