plugin script is used to install, list, and remove plugins. It is
located in the
$ES_HOME/bin directory by default but it may be in a
different location if you installed Elasticsearch
with an RPM or deb package.
Run the following command to get usage instructions:
sudo bin/plugin -h
Running as root
If Elasticsearch was installed using the deb or rpm package then run
root so it can write to the appropriate files on disk.
bin/plugin as the user that owns all of the Elasticsearch