# How to check the specific version of plugin is installed?

**URL:** <https://discuss.elastic.co/t/how-to-check-the-specific-version-of-plugin-is-installed/57206>\
**Category:** Elasticsearch\
**Created:** [August 4, 2016, 10:54am UTC](https://discuss.elastic.co/t/how-to-check-the-specific-version-of-plugin-is-installed/57206 "2016-08-04T10:54:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tmshn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tmshn/32/11208_2.png) [@tmshn](https://discuss.elastic.co/u/tmshn)\
**Post date:** [August 4, 2016, 10:54am UTC](https://discuss.elastic.co/t/how-to-check-the-specific-version-of-plugin-is-installed/57206/1 "2016-08-04T10:54:02Z")

</div>

Is there a good way to check the specific version of plugin is installed?  
(I'm writing Serverspec test to validate an ES cluster).

For now, I'm doing

```
$ bin/plugin list | grep ${plugin}

```

but it doesn't show version.

In addition, the plugin names seem to be converted into lower case in ES ver. 2.X.  
(E.g.; "HQ" -\> "hq").

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Babadofar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/babadofar/32/44803_2.png) [@Babadofar](https://discuss.elastic.co/u/Babadofar)\
**Post date:** [August 4, 2016, 12:08pm UTC](https://discuss.elastic.co/t/how-to-check-the-specific-version-of-plugin-is-installed/57206/2 "2016-08-04T12:08:38Z")

</div>

It seems this will make it into a future version [https://github.com/elastic/elasticsearch/pull/18683](https://github.com/elastic/elasticsearch/pull/18683)

---

<div class="post-metadata">

**Author:** ![tanguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanguy/32/6030_2.png) [@tanguy](https://discuss.elastic.co/u/tanguy)\
**Post date:** [August 4, 2016, 1:22pm UTC](https://discuss.elastic.co/t/how-to-check-the-specific-version-of-plugin-is-installed/57206/3 "2016-08-04T13:22:39Z")

</div>

Hi,

Starting from 5.x you can use `bin/elasticsearch-plugin list --verbose`. It prints something like:

```
Plugins directory: /pat/to/elasticsearch-5.0.0-alpha5-SNAPSHOT/plugins
x-pack
- Plugin information:
Name: x-pack
Description: Elasticsearch Expanded Pack Plugin
Version: 5.0.0-alpha5
 * Classname: org.elasticsearch.xpack.XPackPlugin

```

Previous versions of the plugin manager do not show plugins versions, but you can use

```
GET /_cat/plugins
Honcho cloud-aws 2.3.5 j

```

or

```
GET /_nodes?filter_path= **.plugins.name,**.plugins.version
{
  "nodes" : {
    "zipfkEiMQcSl1gwAxpo9WQ" : {
      "plugins" : [ {
        "name" : "cloud-aws",
        "version" : "2.3.5"
      } ]
    }
  }
}
```

---

<div class="post-metadata">

**Author:** ![tmshn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tmshn/32/11208_2.png) [@tmshn](https://discuss.elastic.co/u/tmshn)\
**Post date:** [August 5, 2016, 3:19am UTC](https://discuss.elastic.co/t/how-to-check-the-specific-version-of-plugin-is-installed/57206/4 "2016-08-05T03:19:31Z")

</div>

Thanks guys!

Just to confirm, @Babadofar and @tanguy are talking about the same thing, `bin/plugin --verbose` option of ver. 5.x?

So then, in summary:

## Ver. 5.x

Use output of `bin/plugin --verbose` (with plugin names downcased).

## Ver 2.x

#### If Elasticsearch is running

Use Cat API `GET /_cat/plugins` (with plugin names downcased).

#### If Elasticsearch is _not_ running

No way to get versions of plugins.

## Ver 1.x or lower

Same as ver. 2.x, but **_without_** plugin names downcased.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:29pm UTC](https://discuss.elastic.co/t/how-to-check-the-specific-version-of-plugin-is-installed/57206/5 "2017-07-05T22:29:55Z")

</div>


