Download - Drush A beginners guide to a advanced tool
DRUSH A Beginners Guide To An Advanced Tool
By Roger Soper
Mediacurrent Consultant
South East Linux FestJune 13, 2010
Project Information
drush is a command line shell and Unix scripting interface for Drupal, a veritable Swiss Army knife designed to make life easier for those of us who spend some of our working hours hacking away at the command prompt.
More information can be found at the Drupal project page at: http://drupal.org/project/drush
`
Vitae
I'm a Drupal developer who has over 10 years of information technology experience in a variety of languages and platforms.
For 3+ years, I've worked exclusively on Drupal based sites for a national publishing company and now I'm a member of the Mediacurrent team.
`
Getting started
Google is your friend :-)
For shared hosting:
http://mediacurrent.com/blogs/learning-how-install-drush-non-admin-rights-server
`
The Goal
Save time and minimize effort:
Quick Video (how fun)
http://vimeo.com/moogaloop.swf?clip_id=5207683&server=vimeo.com
`
Drupal + Drush = Awesome
`
Drush Command Return
`
Command line:
Oh no not the command line!!!!
Relax... its not that bad ;-)
`
What can DRUSH do for you?
Some of the basic common commands
status, pm-releases, download, enable, disable, clear cache
`
Status Command
Provides a birds-eye view of the current Drupal installation, if any.
core-status (status, st)ex: drush status
`
pm-releases Command
Release information for a project
pm-releasesex: drush pm-releases
`
pm-releases Command Return
This is body copy
`
Download Command
Download core Drupal and projects like CCK, Zen, etc.
pm-download (dl)ex: drush dl locationex: drush dl location-3.0-rc2
`
Download Command Return
This is body copy
`
Enable Command
Enable one or more modules or themes.
pm-enable (en)ex: drush en location
`
Enable Command Return
This is body copy
`
Disable Command
Disable one or more modules or themes.
pm-disable (dis)ex: drush dis location
`
Disable Command Return
This is body copy
`
Clear Cache Command
Clear a specific cache, or all drupal caches.
cache-clear (cc)ex: drush cc
`
Lessons learned
Ease of useFile manipulationConfiguration stepsSpeed
`
Other useful features
Sql-cli - SQL command-line interfaceSql-dump - Exports the Drupal DB as SQL using mysqldumpVariable-set - Set a variableCron - Run all cron hooks
`
References
http://drupal.org/project/drushDrush documentation
`
Click to edit the title text formatClick to edit Master title style
Click to edit Master subtitle style6/15/10
Click to edit the title text formatClick to edit Master title style
Click to edit the outline text formatSecond Outline LevelThird Outline LevelFourth Outline LevelFifth Outline LevelSixth Outline LevelSeventh Outline LevelEighth Outline Level
Ninth Outline LevelClick to edit Master text styles
Second level
Third level
Fourth level
Fifth level
6/15/10