Drush 7 for Drupal 8

Over the last couple of weeks I have started playing with Drupal 8.  So far it's been a pleasant experience (surprisingly) though originally I had issues with getting it installed.  I tried using drush dl but it would not work (when used it would only download the latest version of Drupal 7).  Turns out Drush 6 (the version I was currently at) does not support Drupal 8.  Inorder to run Drush with Drupal 8 we have to upgrade Drush to version 7.

I searched and found a couple of resources to accomplish this. The major requirement to upgrading Drush is the need to have Composer installed.  Fortunately I installed Composer when I first installed Drush, but to double-check you can run command 'which composer' which will retuen the path to your Composer install (/usr/local/bin/composer).  After that you make sure Composer is in your system PATH and you can do that with the commands:

  • sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc 
  • source $HOME/.bashrc 

To install Drush 7 all you have to do is issue the command:

  • composer global require drush/drush:dev-master

Once done installing Drush 7 you can verify it by issuing the command:

  • drush status

And that is all there is to it.

If you are in need of more in dept instructions for installing Drush 7 & Composer you can checkout this page:

 

Add new comment

Filtered HTML

  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.