blob: ef68b40f8cf4aa7bcc7b92e47a6ae9dc5e88c095 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= plugin install
Edwin Kempinf7295742012-07-16 15:03:46 +02002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
Edwin Kempinf7295742012-07-16 15:03:46 +02004plugin install - Install/Add a plugin.
5
6plugin add - Install/Add a plugin.
7
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08008== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080010--
Michael Ochmanne2d76a12016-06-23 17:07:37 +020011_ssh_ -p <port> <host> _gerrit plugin install_ | _add_
Edwin Kempinf7295742012-07-16 15:03:46 +020012 [--name <NAME> | -n <NAME>]
13 - | <URL> | <PATH>
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080014--
Edwin Kempinf7295742012-07-16 15:03:46 +020015
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080016== DESCRIPTION
Edwin Kempinf7295742012-07-16 15:03:46 +020017Install/Add a plugin. The plugin will be copied into the site path's
18`plugins` directory.
19
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080020== ACCESS
David Myllykangas511823f2015-01-20 16:34:57 +010021* Caller must be a member of the privileged 'Administrators' group.
22* link:config-gerrit.html#plugins.allowRemoteAdmin[plugins.allowRemoteAdmin]
23must be enabled in `$site_path/etc/gerrit.config`.
Edwin Kempinf7295742012-07-16 15:03:46 +020024
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080025== SCRIPTING
Edwin Kempinf7295742012-07-16 15:03:46 +020026This command is intended to be used in scripts.
27
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080028== OPTIONS
Edwin Kempinf7295742012-07-16 15:03:46 +020029-::
Dariusz Luksza357a2422012-11-12 06:16:26 +010030 Plugin jar or js as piped input.
Edwin Kempinf7295742012-07-16 15:03:46 +020031
32<URL>::
33 URL from where the plugin should be downloaded. This can be an
34 HTTP or FTP site.
35
36<PATH>::
Dariusz Luksza357a2422012-11-12 06:16:26 +010037 Absolute file path to the plugin jar or js.
Edwin Kempinf7295742012-07-16 15:03:46 +020038
39--name::
40-n::
David Ostrovsky366ad0e2013-09-05 19:59:09 +020041 The name under which the plugin should be installed. Note: if the plugin
42 provides its own name in the MANIFEST file, then the plugin name from the
43 MANIFEST file has precedence over this option.
Edwin Kempinf7295742012-07-16 15:03:46 +020044
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080045== EXAMPLES
Edwin Kempinf7295742012-07-16 15:03:46 +020046Install a plugin from an absolute file path on the server's host:
47
Michael Ochmannb99feab2016-07-06 14:10:22 +020048----
David Shevitzc47f2362018-09-27 10:55:35 -070049ssh -p 29418 localhost gerrit plugin install -n name.jar $(pwd)/my-plugin.jar
Michael Ochmannb99feab2016-07-06 14:10:22 +020050----
Edwin Kempinf7295742012-07-16 15:03:46 +020051
David Pursehousea61ee502016-09-06 16:27:09 +090052Install a WebUI plugin from an absolute file path on the server's host:
Dariusz Luksza357a2422012-11-12 06:16:26 +010053
Michael Ochmannb99feab2016-07-06 14:10:22 +020054----
David Shevitzc47f2362018-09-27 10:55:35 -070055ssh -p 29418 localhost gerrit plugin install -n name.js $(pwd)/my-webui-plugin.js
Michael Ochmannb99feab2016-07-06 14:10:22 +020056----
Dariusz Luksza357a2422012-11-12 06:16:26 +010057
Edwin Kempinf7295742012-07-16 15:03:46 +020058Install a plugin from an HTTP site:
59
Michael Ochmannb99feab2016-07-06 14:10:22 +020060----
David Shevitzc47f2362018-09-27 10:55:35 -070061ssh -p 29418 localhost gerrit plugin install -n name.jar http://build-server/output/our-plugin
Michael Ochmannb99feab2016-07-06 14:10:22 +020062----
Edwin Kempinf7295742012-07-16 15:03:46 +020063
64Install a plugin from piped input:
65
Michael Ochmannb99feab2016-07-06 14:10:22 +020066----
David Shevitzc47f2362018-09-27 10:55:35 -070067ssh -p 29418 localhost gerrit plugin install -n name.jar - <target/name-0.1.jar
Michael Ochmannb99feab2016-07-06 14:10:22 +020068----
Edwin Kempinf7295742012-07-16 15:03:46 +020069
70GERRIT
71------
72Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070073
74SEARCHBOX
75---------