Take the 2-minute tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I want to install drush-toolbox project globaly on my linux server box so all users can use it. How can I do it?

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Put it in /usr/share/drush/commands for global accessibility. On Windows, Drush will look in the folder named "Drush/share/drush/commands" inside the location specified by the 'ALLUSERSPROFILE' environment variable.

share|improve this answer

Newer versions of drush (6.2 here) are installed with composer, the new PHP dependency manager. So the installation of an additional command is now like this, in your case:

  1. Go to the installation directory for drush commands:

    cd [drupal-site-docroot]/vendor/drush/drush/commands
    

    This assumes the default case where composer installed drush for each of your Drupal sites separately (it can also install it once per user, or once system-wide – I prefer the latter).

  2. Download, unpack and clean up:

    wget https://github.com/zroger/drush-toolbox/archive/master.zip;
    unzip master.zip;
    mv drush-toolbox-master drush-toolbox;
    rm master.zip;
    
  3. Clear the commandfile cache to register the new command:

    drush cc drush
    
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.