drush
Drush is a shell-based application used to control, manipulate, and administer Drupal sites. On the surface, drush is an excellent tool for updating site modules, but here is a more comprehensive list of features for drush:
- Quick status report (get Drupal site version)
- Run cron
- Clear caches
- Export site databases (SQL dump)
- Update site code
- Update Drupal database (run "update.php")
- Get Info & Download Any Module
- Enable/Disable/Uninstall Modules
- Simulate updates/commands
- Sync environments (perfect for DEV-STAGE-PRODUCTION)
- plus some modules offer drush add-ons, like Module Builder & Devel, plus many more.
You can see a list of Drush commands available.
View the official list of modules that have Drush add-on commands available.
Drush now has variable get, set and delete
Drush has new commands now to manage variables.
Chris, can you add them to the drush commands page?
"Drush vget user" will give you a list of all variable names beginning with 'user' and their values. Useful to see all variable settings for a specific module, or figure out a variable's name.
"Drush vset prep 0" will let you choose from the variables beginning with 'prep' and set one to 0. Useful to quickly change simple variables, for example to disable css preprocessing.
DRUSH Update Question
Hi Chris,
Love the DRUSH tool!
I have been using it as much as I can and each time am finding new things and ways to take advantage of it.
I have a question - concerning the update and updatecode functions. I didn't see any detailed docs on recommended usage on this and was wondering if you or anyone else that is more knowledgeable on it, could show us the proper way to use these functions?
For example do we put the site in maintenance mode, disable modules prior to update, etc.
Thanks so much!
Tim
Are you a Drush beginner or a pro?
What features/uses of Drush are you interested in learning?
What in Drush are you learning, or would like to learn? Please comment below.
Drush commands reference
Run drush help [command] to view command-specific help.
Examples:
drush dl cck zen Download CCK module and Zen theme.
drush --uri=http://example.com status Show status command for the example.com multi-site.
drush help --pipe A space delimited list of commands
Do you use drush on local or remote environments, or both?
What platform do you use drush on?
Drush is a shell-based application used to control, manipulate, and administer Drupal sites. On the surface, drush is an excellent tool for updating site modules, but here is a more comprehensive list of features for drush:
- Quick status report (get Drupal site version)
- Run cron
- Clear caches
- Export site databases (SQL dump)
- Update site code
- Update Drupal database (run "update.php")
- Get Info & Download Any Module
- Enable/Disable/Uninstall Modules
- Simulate updates/commands
- Sync environments (perfect for DEV-STAGE-PRODUCTION)
- plus some modules offer drush add-ons, like Module Builder & Devel, plus many more.
You can see a list of Drush commands available.
View the official list of modules that have Drush add-on commands available.



