Drupal drush for Windows

There’s a couple of blog posts out there telling you how to do this.

I thought I’d just summarise it to make it easier:

  1. Download the Drupal drush package and put it somewhere in your system. Place it utside of the Drupal installation so that there’s no risk of it being executed from the browser.
  2. Download the following packages from the sourceforge GnuWin32 project:
    1. Get the latest wget installer here.
    2. Get the latest bzip2 installer here.
    3. Get the latest tar installer here.
  3. Install all of the above gnu packages.
  4. Set your environment variables to detect all of the necessary binaries:
    1. Go to Start>Run and type sysdm.cpl to bring up the system properties dialog.
    2. Click on the Environment Variables button.
    3. In the System Variables panel, edit the Path variable value:
      1. <existing path>;<path to php>;<path to gnuwin>;<path to drush>;
      2. If you’re on a 64-bit system, gnuwin be in your Program Files (x86) directory.
      3. You can check that each of the above paths are resolving by typing php/tar/gzip/wget/drush in a dos prompt.
  5. Start>run>cmd and navigate to your Drupal installation
  6. Type drush for a list of commands. Append your commands with -d for debugging if the commands aren’t working.

Hope that helps somebody.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • StumbleUpon

About this entry