Loading

Custom URL or file system

A plugin can also be downloaded from a custom location by specifying a URL:

sudo bin/elasticsearch-plugin install [url]
		
  1. Must be a valid URL. The plugin name is determined from its descriptor.
Unix

To install a plugin from your local file system at /path/to/plugin.zip:

sudo bin/elasticsearch-plugin install file:///path/to/plugin.zip
		
Windows

To install a plugin from your local file system at C:\path\to\plugin.zip:

bin\elasticsearch-plugin install file:///C:/path/to/plugin.zip
		
Note

Any path that contains spaces must be wrapped in quotes.

Note

If you install a plugin from the filesystem, the plugin distribution must not be contained in the plugins directory for the node that you are installing to, or installation will fail.

HTTP

To install a plugin from an HTTP URL:

sudo bin/elasticsearch-plugin install <EXAMPLE_PLUGIN_HOST_URL>/plugin.zip
		

The plugin script refuses to talk to an HTTPS URL with an untrusted certificate. To use a self-signed HTTPS cert, add the CA cert to a local Java truststore and pass the location to the script:

sudo CLI_JAVA_OPTS="-Djavax.net.ssl.trustStore=/path/to/trustStore.jks" bin/elasticsearch-plugin install <MY_HOST_URL>/plugin.zip