blob: 0ce6d7de5781c55073360cb219896c8879fd79be [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
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08009--
Edwin Kempinf7295742012-07-16 15:03:46 +020010'ssh' -p <port> <host> 'gerrit plugin install | add'
11 [--name <NAME> | -n <NAME>]
12 - | <URL> | <PATH>
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080013--
Edwin Kempinf7295742012-07-16 15:03:46 +020014
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080015== DESCRIPTION
Edwin Kempinf7295742012-07-16 15:03:46 +020016Install/Add a plugin. The plugin will be copied into the site path's
17`plugins` directory.
18
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080019== ACCESS
David Myllykangas511823f2015-01-20 16:34:57 +010020* Caller must be a member of the privileged 'Administrators' group.
21* link:config-gerrit.html#plugins.allowRemoteAdmin[plugins.allowRemoteAdmin]
22must be enabled in `$site_path/etc/gerrit.config`.
Edwin Kempinf7295742012-07-16 15:03:46 +020023
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080024== SCRIPTING
Edwin Kempinf7295742012-07-16 15:03:46 +020025This command is intended to be used in scripts.
26
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080027== OPTIONS
Edwin Kempinf7295742012-07-16 15:03:46 +020028-::
Dariusz Luksza357a2422012-11-12 06:16:26 +010029Plugin jar or js as piped input.
Edwin Kempinf7295742012-07-16 15:03:46 +020030
31<URL>::
32URL from where the plugin should be downloaded. This can be an
33HTTP or FTP site.
34
35<PATH>::
Dariusz Luksza357a2422012-11-12 06:16:26 +010036Absolute file path to the plugin jar or js.
Edwin Kempinf7295742012-07-16 15:03:46 +020037
38--name::
39-n::
David Ostrovsky366ad0e2013-09-05 19:59:09 +020040The name under which the plugin should be installed. Note: if the plugin
41provides its own name in the MANIFEST file, then the plugin name from the
42MANIFEST file has precedence over this option.
Edwin Kempinf7295742012-07-16 15:03:46 +020043
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080044== EXAMPLES
Edwin Kempinf7295742012-07-16 15:03:46 +020045Install a plugin from an absolute file path on the server's host:
46
47====
Dariusz Luksza357a2422012-11-12 06:16:26 +010048ssh -p 29418 localhost gerrit plugin install -n name.jar \
Edwin Kempinf7295742012-07-16 15:03:46 +020049 $(pwd)/my-plugin.jar
50====
51
Dariusz Luksza357a2422012-11-12 06:16:26 +010052Install a WebUi plugin from an absolute file path on the server's host:
53
54====
55 ssh -p 29418 localhost gerrit plugin install -n name.js \
56 $(pwd)/my-webui-plugin.js
57====
58
Edwin Kempinf7295742012-07-16 15:03:46 +020059Install a plugin from an HTTP site:
60
61====
Dariusz Luksza357a2422012-11-12 06:16:26 +010062ssh -p 29418 localhost gerrit plugin install -n name.jar \
63 http://build-server/output/our-plugin
Edwin Kempinf7295742012-07-16 15:03:46 +020064====
65
66Install a plugin from piped input:
67
68====
Dariusz Luksza357a2422012-11-12 06:16:26 +010069ssh -p 29418 localhost gerrit plugin install -n name.jar \
Edwin Kempinf7295742012-07-16 15:03:46 +020070 - <target/name-0.1.jar
71====
72
73GERRIT
74------
75Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070076
77SEARCHBOX
78---------