Drush-koumbit is a project mainly written in PHP, it's free.
Mirror of the old repository from git.koumbit.net/drupal/modules/drush
// $Id: README.txt,v 1.27 2009/10/22 04:12:33 weitzman Exp $
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 hours hacking at the command prompt.
Drush core ships with lots of useful commands for interacting with code like modules/themes/profiles. Similarly, it runs update.php, executes sql queries and DB migrations, and misc utilities like run cron or clear cache.
For Linux/Unix/Mac:
Untar the tarball into a folder outside of your web site (/path/to/drush)
Make the 'drush' command executable: $ chmod u+x /path/to/drush/drush
(Optional, but recommended:) To ease the use of drush,
create an alias to drush: $ alias drush='/path/to/drush/drush' (this goes into .profile or .bash_aliases in your home folder)
NOTE FOR ADVANCED USERS
Start using drush by running "drush" from your Drupal root directory.
(or, if you did not follow step 3, by running "/path/to/drush/drush" or navigating to /path/to/drush and running "./drush" )
If you have troubles, try using the -l and -r parameters when invoking drush. See below.
For Windows (experimental!):
Once installed and setup (see above), you can use drush as follows while in any Drupal directory:
$ drush [options]
Use the 'help' command to get a list of available options and commands:
$ drush help
For multisite installations, you might need to use the -l or other command line options just to get drush to work:
$ drush -l http://example.com help
Related Options:
-r
Some other options:
-i
If you get tired of typing options all the time, you can add them to your drush.php alias or create a drushrc.php file. These provide additional options for your drush call. They provide great flexibility for a multi-site installation, for example. See example.drushrc.php.
Drush ships with a number of commands, but you can easily write your own. In fact, writing a drush command is no harder that writing simple Drupal extensions, since drush command files closely follows the structure of ordinary Drupal modules.
See example.drush.inc for details on the internals of a drush command file.
You can put your drush command file in a number of places:
In any case, it is important that you append it with ".drush.inc", so that drush can find it.
Q: What does "drush" stand for? A: The Drupal Shell.
Originally developed by Arto Bendiken http://bendiken.net/ for Drupal 4.7. Redesigned by Franz Heinzmann (frando) http://unbiskant.org/ in May 2007 for Drupal 5. Maintained by Moshe Weitzman http://drupal.org/moshe with much help from Grugnog2, Adrian Rossouw, and Vingborg.