blob: 5443613c92406e7a7bb467ec6e30ec4635388517 [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----
Dariusz Luksza357a2422012-11-12 06:16:26 +010049 ssh -p 29418 localhost gerrit plugin install -n name.jar \
Edwin Kempinf7295742012-07-16 15:03:46 +020050 $(pwd)/my-plugin.jar
Michael Ochmannb99feab2016-07-06 14:10:22 +020051----
Edwin Kempinf7295742012-07-16 15:03:46 +020052
David Pursehousea61ee502016-09-06 16:27:09 +090053Install a WebUI plugin from an absolute file path on the server's host:
Dariusz Luksza357a2422012-11-12 06:16:26 +010054
Michael Ochmannb99feab2016-07-06 14:10:22 +020055----
Dariusz Luksza357a2422012-11-12 06:16:26 +010056 ssh -p 29418 localhost gerrit plugin install -n name.js \
57 $(pwd)/my-webui-plugin.js
Michael Ochmannb99feab2016-07-06 14:10:22 +020058----
Dariusz Luksza357a2422012-11-12 06:16:26 +010059
Edwin Kempinf7295742012-07-16 15:03:46 +020060Install a plugin from an HTTP site:
61
Michael Ochmannb99feab2016-07-06 14:10:22 +020062----
Dariusz Luksza357a2422012-11-12 06:16:26 +010063 ssh -p 29418 localhost gerrit plugin install -n name.jar \
64 http://build-server/output/our-plugin
Michael Ochmannb99feab2016-07-06 14:10:22 +020065----
Edwin Kempinf7295742012-07-16 15:03:46 +020066
67Install a plugin from piped input:
68
Michael Ochmannb99feab2016-07-06 14:10:22 +020069----
Dariusz Luksza357a2422012-11-12 06:16:26 +010070 ssh -p 29418 localhost gerrit plugin install -n name.jar \
Edwin Kempinf7295742012-07-16 15:03:46 +020071 - <target/name-0.1.jar
Michael Ochmannb99feab2016-07-06 14:10:22 +020072----
Edwin Kempinf7295742012-07-16 15:03:46 +020073
74GERRIT
75------
76Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070077
78SEARCHBOX
79---------