Drush 2 is way better and usable than Drush 1 was

Events happening in the community are now at Drupal community events on www.drupal.org.
Michael Hofmockel's picture

Drush 2 is way better and usable than Drush 1.
http://drupal.org/project/drush

Drush is a command line tool for Drupal, it is not a module. I have found it greatly increases my Drupal development. It can download, enable, disable, uninstall and update modules/themes/profiles/translations. It is CVS, SVN and Rsync capable. It can execute SQL commands and many core functions like cron and clearing cache. But wait there's more ...

If you develop with Drupal I recommend loading it on your local environment with these commands. I do all my CVS checkouts/updates with it.

From you home directory
1. cvs -z6 -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -r HEAD -d drush contributions/modules/drush
- checkout drush
2. alias drush='~/drush/drush.php'
- Alias the command so it can be executed
3. cp drush/example.drushrc.php drush/drushrc.php
- copy the configuartion example
4. nano drush/drushrc.php
- optionally edit the configuration file: I find these two configuration options helpful.

// always run as user 1
$options['u'] = 1;

// set package handler to CVS
$options['package-handler'] = 'cvs';

After installing: just go to the root directory of any Drupal instance and execute drush to see all the available commands.

Example usage:
I wanted to disable the devel module and its dependencies. This would have taken me three trips through the UI module form as I had Devel, Devel Generate and location Generate enabled.
But Drush does this with a single command

$ drush disable devel

Central Iowa Drupal Users Group

Group categories

Category

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week