Skip to content

Commit 90ed3ca

Browse files
committed
[DOCS] Plugin Installation for Windows (#21671)
This shows an example of how to install a plugin on Windows, which is not as obvious at I would have expected.
1 parent 8f3754c commit 90ed3ca

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

docs/plugins/plugin-script.asciidoc

+24-4
Original file line numberDiff line numberDiff line change
@@ -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
-----------------------------------
7173
sudo 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+
+
7494
The plugin script will refuse to talk to an HTTPS URL with an untrusted
7595
certificate. To use a self-signed HTTPS cert, you will need to add the CA cert
7696
to 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]]

0 commit comments

Comments
 (0)