Feel the Drush
I have been hearing about Drush, aka the Drupal Shell, for a while now, but have always been put off by the “Windows support is experimental.” message on the project page. But I finally got sick of all the clicking I need to do to download and enable new modules for evaluation. It took a bit of fuss to get it all configured, but boy was it worth it!
Here are the step needed to get Drush running on a Windows XP box:
1) Go to http://drupal.org/project/drush, and download the module the old fashioned way (for the last time).
2) Enable the module the old fashioned way.
3) Go to http://gnuwin32.sourceforge.net/ and download and install gzip, tar and wget.
4) Go to your Control Panel -> Systems -> Advanced -> Environment Variables
5) Click on Path, Edit and then add the paths to your new gnuwin bin, your php.exe and your Drush module.
6) Edit drush.bat to look something like this:
@php.exe "C:\path\to\drush\module\drush.php" -l http://localhost/yoursite -r "C:\path\to\drupal\multisite\yoursite" %1 %2 %3 %4 %5 %6 %7 %8 %97) Pop open a command window (Start->Run->cmd).
8) Now use drush to download the Drush Module Manager:
drush pm install drush_mm9) Enable the module the old fashioned way (for the last time).
You are now good to go. Installing and enabling a new module is as simple as
drush pm install X
drush mm enable X
Enjoy!
Cool to mention drush_mm
Cool to mention drush_mm :-)
What’s more you can now type ie
drush pm install ubercart token tapir ubrowserdrush mm enable uc_cart
If you know ubercart you know it’s a lot of clicking to just enable the modules.
Cheers,
Clemens
For sure
I’ve been using drush for a long time, I presented about it at the local DUG as well. I don’t start a drupal site without it now, it increases build time by a ridiculous amount.
-xamox
getting mm
Took me a while to figure out why the mm command wasn’t available.. eventually found your step 8. :) I think you may have meant drush_mm instead of drupal_mm, though.
Maarten.
Thanks. I have fixed it in
Thanks. I have fixed it in the article.