4

Just that, Is there a Drush command to check the distribution version?

Let's say I have installed the commerce_kickstart distributionn, how do I check the version of this distribution with Drush?

this one doesn't work:

drush pmi commerce_kickstart

3 Answers 3

4

Try using drush core-requirements command. It returns the status report in table form, and the information you want should be about 3 or 4 rows down.

drush rq | grep Kickstart
1
  • Even better you can: drush rq | grep -i 'install profile' so you don't care what distro you checking..
    – sobi3ch
    Commented Oct 29, 2015 at 7:58
4

As far as I know, no.

Since commerce_kickstart is not a module, but a profile, the drush commands for getting info about a module (e.g.):

drush pm-info commerce_kickstart
drush pm-list | grep commerce_kickstart

will not work.

1
  • 1
    This is what I usually do, but it is time wasting. Also to mention that I need to check the Commerce Kickstart distribution version (which is 7.x-2.6), not the Drupal version (7.22).
    – chefnelone
    Commented Apr 16, 2013 at 7:58
2

If you want to check the Drupal version then simplest is to run drush status from a drupal installation folder. That will tell you Drupal Version on the first line, no matter which installation profile you used to install it.

2
  • in this way I can see the Drupal version but not the Commerce Kickstart distribution version
    – chefnelone
    Commented Apr 16, 2013 at 7:56
  • The question is about distribution not Drupal it self.
    – sobi3ch
    Commented Oct 29, 2015 at 7:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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