Elasticsearch on MacOS, not able to find plugin command

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

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

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

==> 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

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

or

$ 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 to be included on the path. Lastly, the script will be renamed to elasticsearch-plugin in a future version of Elasticsearch; when that happens we will revisit this.

1 Like

RUN

brew info elasticsearch

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