1

Drush 6 works great of corse on a Drupal 6 website, but will I have all of the Drush 6 features when working on a Drupal 7 website? Should I use Drush 7 when working on a drupal 7 website?

I found this post that says you can switch between the two version easily, is this correct?

switch to drush6 command: composer global require drush/drush:6.*

switch to drush7 command: composer global require drush/drush:dev-master

  • Well, you shouldn't be working on Drupal 6 since it's no longer supported "On February 24th 2016, Drupal 6 will reach end of life and no longer be supported." Unless you're in the processing of upgrading. More info at Drupal 6 end-of-life announcement – No Sssweat Mar 9 '16 at 13:44
6

Always, always read the docs. Right at the bottom of the first page you'll find this:

enter image description here

Which removes any ambiguity.

  • 1
    It's worth noting that the PHP requirements for Drush are higher than those for Drupal 6 and 7 core. This may or may not be an issue; check your server config. It is also worth noting that all of those PHP versions are pretty ancient; all of the ones listed in the table above are EOL. – mpdonadio Mar 9 '16 at 14:00
  • Drush 9 will require PHP 5.5. Drush supports ancient versions of PHP to help interoperability with old servers on LTS distributions, but it's always advisable to upgrade when possible, even when the old versions are still functional. – greg_1_anderson Mar 9 '16 at 17:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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