Drush

Arto - November 13, 2006 - 02:00

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 most of our working hours hacking away at the command prompt.

The drush was originally developed by Arto for Drupal 4.7 (this alpha code can still be found in the DRUPAL-4-7 branch). In May 2007, it was partly rewritten and redesigned for Drupal 5 by frando .

Also included are several modules that make use of the drush API:

  • drush_pm.module: The drush Package Manager: This module allows you to install modules from the command line in a very simple way (apt-get style) - just type e.g. drush pm install views in a Drupal directory to install the Views project!
    Additionally, the Drush Packet Manager also allows you to update all your modules with just one command - drush pm update.

    The drush_pm.module requires the Update Status module (version 5.x-2.0 or above).

  • drush_tools.module: The drush Toolbox: several useful utilities for site administrators and developers (e.g. drush cron or drush cache clear)
  • The drush_sql module helps you issue queries to any of your databases (i.e. is multi-site aware) and even helps you migrate databases between your environments.
  • The drush_simpletest module is a fast and easy way to run simpletest tests from the command line.

Be sure to read the accompanying README.txt for installation and usage instructions.

More contributions both in the form of new commands for the drush_tools.module and new modules that make use of the drush API are greatly welcome!

Windows support is experimental.

Releases

Official releasesDateSizeLinksStatus
6.x-1.02008-Jun-1928.98 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.32008-May-1928.66 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-1.x-dev2008-Aug-1129.08 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
5.x-1.x-dev2008-Aug-1128.82 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
4.7.x-1.x-dev2006-Nov-2822.81 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
 
 

Drupal is a registered trademark of Dries Buytaert.