How to set up Drupal.org drush

Last updated on
11 July 2022

Packaging of drupal-org.make files present in a distribution on Drupal.org will end in November 2022. Drupal distributions can provide packaged downloads from alternative sources (ie. GitHub) or point users to documentation about running drush make locally or as part of a build process. Developers who want to manage an Install Profile with Composer are encouraged to get involved in the Distribution Modernization Initiative.  

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.
    drush verify-makefile

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

Help improve this page

Page status: No known problems

You can: