# Elasticsearch on MacOS, not able to find plugin command

**URL:** <https://discuss.elastic.co/t/elasticsearch-on-macos-not-able-to-find-plugin-command/41098>\
**Category:** Elasticsearch\
**Created:** [February 5, 2016, 9:12pm UTC](https://discuss.elastic.co/t/elasticsearch-on-macos-not-able-to-find-plugin-command/41098 "2016-02-05T21:12:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vzgfu](https://avatars.discourse-cdn.com/v4/letter/v/65b543/32.png) [@vzgfu](https://discuss.elastic.co/u/vzgfu)\
**Post date:** [February 5, 2016, 9:12pm UTC](https://discuss.elastic.co/t/elasticsearch-on-macos-not-able-to-find-plugin-command/41098/1 "2016-02-05T21:12:43Z")

</div>

I installed elasticsearch on my MacOS by using home-brew

brew update  
brew install elasticsearch

After installation, I checked the installed path  
cd /usr/local/Cellar/elasticsearch/2.2.0\_1/bin  
But I only find one command there: elasticsearch

Where can I find the plugin command?

Thanks  
Gang

---

<div class="post-metadata">

**Author:** ![Geunmoon\_Oh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/geunmoon_oh/32/7507_2.png) [@Geunmoon\_Oh](https://discuss.elastic.co/u/Geunmoon_Oh)\
**Post date:** [February 6, 2016, 11:32am UTC](https://discuss.elastic.co/t/elasticsearch-on-macos-not-able-to-find-plugin-command/41098/2 "2016-02-06T11:32:37Z")

</div>

you can find plugin in /usr/local/Cellar/elasticsearch/2.2.0\_1/libexec/bin

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [February 6, 2016, 3:19pm UTC](https://discuss.elastic.co/t/elasticsearch-on-macos-not-able-to-find-plugin-command/41098/3 "2016-02-06T15:19:47Z")

</div>

When you install Elasticsearch from Homebrew, it prints out the following message:

```nohighlight
==> Caveats
Data: /usr/local/var/elasticsearch/elasticsearch_jason/
Logs: /usr/local/var/log/elasticsearch/elasticsearch_jason.log
Plugins: /usr/local/Cellar/elasticsearch/2.2.0_1/libexec/plugins/
Config: /usr/local/etc/elasticsearch/
plugin script: /usr/local/Cellar/elasticsearch/2.2.0_1/libexec/bin/plugin

```

This shows for your system where the `plugin` script is installed (it should be the same as mine, unless you've setup a custom location for Homebrew).

I'd also like to add that you can find the same with

```bash
$ find -L $(brew --prefix elasticsearch) -type f -name plugin
/usr/local/opt/elasticsearch/libexec/bin/plugin

```

or

```bash
$ find $(brew --cellar elasticsearch) -type f -name plugin
/usr/local/Cellar/elasticsearch/2.2.0_1/libexec/bin/plugin

```

from the command line (kegs are symlinked from `/usr/local/opt/`, so you can get to it from either of these).

The scripts in `bin` off a keg are symlinked from `/usr/local/bin` which is usually included in your `PATH`. However, [`plugin` is too generic of a name](https://github.com/Homebrew/homebrew/pull/47941) to be included on the path. Lastly, the script will be [renamed to `elasticsearch-plugin`](https://github.com/elastic/elasticsearch/pull/16454) in a future version of Elasticsearch; when that happens we will revisit this.

---

<div class="post-metadata">

**Author:** ![Alexander\_Krum](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_krum/32/18513_2.png) [@Alexander\_Krum](https://discuss.elastic.co/u/Alexander_Krum)\
**Post date:** [May 25, 2017, 2:33pm UTC](https://discuss.elastic.co/t/elasticsearch-on-macos-not-able-to-find-plugin-command/41098/4 "2017-05-25T14:33:42Z")

</div>

RUN

brew info elasticsearch

It will print the installation summary as @jasontedor has mentioned.

---

<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:00pm UTC](https://discuss.elastic.co/t/elasticsearch-on-macos-not-able-to-find-plugin-command/41098/5 "2017-07-05T22:00:03Z")

</div>


