How to set up Drupal.org drush

Last updated on
2 November 2016

Packaging .make files into distributions on Drupal.org requires the drush extension Drupal.org Drush, for running tests on makefiles. These instructions are to help you install Drupal.org Drush.

drush cache-clear drush

drush verify-makefile

  1. Install drush by following the instructions on the project page or in the README.txt file.
  2. Installation of Drupal.org drush extension could be done in two ways:
    1. Installation in user drush directory(preferred):
      1. Check that user drush directory exists: mkdir -p ~/.drush
      2. Put the latest version of Drupal.org drush in the user drush directory:
        cd ~/.drush;git clone --branch 7.x-1.x http://git.drupal.org/project/drupalorg_drush.git
    2. Installation in drush commands directory:

      git clone --branch 7.x-1.x http://git.drupal.org/project/drupalorg_drush.git

      1. Grab the latest version of Drupal.org drush via git, e.g.
      2. Move the drupalorg_drush directory under [path-to-drush]/drush/commands directory. (To find [path-to-drush] using the command line, enter which drush)
  3. Clear the drush cache, e.g.
  4. Verify that Drupal.org drush is installed by running one of the commands, e.g.

These instructions were originally by Kristen Pol, and can be found here.