How can I identify what version of Drush is installed on a given system?
-
7Many of your very specific Drush questions could be easily answered by reading, or even skimming, the Drush documentation.– tim.plunkettCommented Mar 3, 2011 at 5:42
-
1What Tim said. We really need to avoid the trivial questions during private beta.– user7Commented Mar 3, 2011 at 22:14
-
12I totally understand the need to avoid certain types of questions. I would argue that just because a question is what some might consider 'trivial' doesn't make it a bad question. Vague, open-ended, chatty, subjective; these are the types of questions we should strive to avoid. If we are serious about this site as the go-to place for answers to Drupal questions these are exactly the types of questions people will come here looking for the answer to. Just my two cents!– markdorisonCommented Mar 4, 2011 at 2:55
-
1Mark is right. This is a relevant question. My hosting company installed drush for me ni the webserver and I needed to check the version. Turns out the "normal" drush --version didn't work because they installed an ancient Drush 3. I'm glad I found the answer here.– batigolixCommented Aug 22, 2014 at 19:42
-
2I disagree with Tim. It is way easier to find information on google when there is a question associated with what you are looking for.– Francisco LuzCommented Apr 13, 2015 at 15:11
6 Answers
Assuming you have Drush installed and working properly, just type drush status
in your command prompt. It will give you drush version as well as Drupal version info. If you have aliases set up for remote (or local) sites, you can run drush @alias status
and it will give you the status info for that remote system.
-
2Since Drush 4.2 :
drush version
This is a good way to know if drush is installed and running. Commented Jan 15, 2016 at 13:51
If your Drush installation is not working and you have an older version of drush, then neither drush status
nor drush --version
will help. In that case go to the directory where drush is installed (~/.drush/drush on my system) and look at the drush.info file. There you will see a line that says version=3.0
(or whatever)
You can check Drush version with "drush status" command inside your application directory or outside your application directory, the difference will be when you are inside application directory you will get more information,
Check below links for better understanding on Drush commands,
http://mydons.com/commonly-used-drush-commands-drupal-developers-must-know/ http://mydons.com/install-and-upgrade-drush-version-in-linux/
drush --version
Works for Drush 8 and Drush 7 too.
You can also see the other global options by
drush topic core-global-options