@@ -64,20 +64,40 @@ sudo bin/elasticsearch-plugin install [url] <1>
6464-----------------------------------
6565<1> must be a valid URL, the plugin name is determined from its descriptor.
6666
67- For instance, to install a plugin from your local file system, you could run:
68-
67+ Unix::
68+ +
69+ To install a plugin from your local file system at `/path/to/plugin.zip`, you could run:
70+ +
6971[source,shell]
7072-----------------------------------
7173sudo bin/elasticsearch-plugin install file:///path/to/plugin.zip
7274-----------------------------------
7375
76+ Windows::
77+ +
78+ To install a plugin from your local file system at `C:\path\to\plugin.zip`, you could run:
79+ +
80+ [source,shell]
81+ -----------------------------------
82+ bin\elasticsearch-plugin install file:///C:/path/to/plugin.zip
83+ -----------------------------------
84+ +
85+ NOTE: Any path that contains spaces must be wrapped in quotes!
86+
87+ HTTP::
88+ +
89+ [source,shell]
90+ -----------------------------------
91+ sudo bin/elasticsearch-plugin install http://some.domain/path/to/plugin.zip
92+ -----------------------------------
93+ +
7494The plugin script will refuse to talk to an HTTPS URL with an untrusted
7595certificate. To use a self-signed HTTPS cert, you will need to add the CA cert
7696to a local Java truststore and pass the location to the script as follows:
77-
97+ +
7898[source,shell]
7999-----------------------------------
80- sudo ES_JAVA_OPTS="-Djavax.net.ssl.trustStore=/path/to/trustStore.jks" bin/elasticsearch-plugin install https://....
100+ sudo ES_JAVA_OPTS="-Djavax.net.ssl.trustStore=/path/to/trustStore.jks" bin/elasticsearch-plugin install https://host/plugin.zip
81101-----------------------------------
82102
83103[[listing-removing-updating]]
0 commit comments