Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = init |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 4 | init - Initialize a new Gerrit server installation |
| 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 7 | -- |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 8 | 'java' -jar gerrit.war 'init' |
| 9 | -d <SITE_PATH> |
Yuxuan 'fishy' Wang | 77e1508 | 2013-12-09 15:43:25 -0800 | [diff] [blame] | 10 | [--batch] |
| 11 | [--no-auto-start] |
| 12 | [--list-plugins] |
| 13 | [--install-plugin=<PLUGIN_NAME>] |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 14 | -- |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 15 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 16 | == DESCRIPTION |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 17 | Creates a new Gerrit server installation, interactively prompting |
| 18 | for some basic setup prior to writing default configuration files |
| 19 | into a newly created `$site_path`. |
| 20 | |
David Pursehouse | 221d4f6 | 2012-06-08 17:38:08 +0900 | [diff] [blame] | 21 | If run in an existing `$site_path`, init will upgrade some resources |
Shawn O. Pearce | 89cefce | 2010-12-08 18:30:43 -0800 | [diff] [blame] | 22 | as necessary. |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 23 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 24 | == OPTIONS |
Yuxuan 'fishy' Wang | 77e1508 | 2013-12-09 15:43:25 -0800 | [diff] [blame] | 25 | --batch:: |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 26 | Run in batch mode, skipping interactive prompts. Reasonable |
| 27 | configuration defaults are chosen based on the whims of |
| 28 | the Gerrit developers. |
Edwin Kempin | 1cd6909 | 2012-04-27 14:01:26 +0200 | [diff] [blame] | 29 | + |
| 30 | If during a schema migration unused objects (e.g. tables, columns) |
| 31 | are detected they are *not* automatically dropped, but only a list of |
| 32 | SQL statements to drop these objects is provided. To drop the unused |
| 33 | objects these SQL statements have to be executed manually. |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 34 | |
Yuxuan 'fishy' Wang | 77e1508 | 2013-12-09 15:43:25 -0800 | [diff] [blame] | 35 | --no-auto-start:: |
Shawn O. Pearce | d99326d | 2009-12-14 07:34:04 -0800 | [diff] [blame] | 36 | Don't automatically start the daemon after initializing a |
Edwin Kempin | f1acbb8 | 2011-09-15 12:49:42 +0200 | [diff] [blame] | 37 | newly created site path. This permits the administrator |
Shawn O. Pearce | d99326d | 2009-12-14 07:34:04 -0800 | [diff] [blame] | 38 | to inspect and modify the configuration before the daemon |
| 39 | is started. |
| 40 | |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 41 | -d:: |
Yuxuan 'fishy' Wang | 77e1508 | 2013-12-09 15:43:25 -0800 | [diff] [blame] | 42 | --site-path:: |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 43 | Location of the gerrit.config file, and all other per-site |
Edwin Kempin | f1acbb8 | 2011-09-15 12:49:42 +0200 | [diff] [blame] | 44 | configuration data, supporting libraries and log files. |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 45 | |
Yuxuan 'fishy' Wang | 77e1508 | 2013-12-09 15:43:25 -0800 | [diff] [blame] | 46 | --list-plugins:: |
Dariusz Luksza | b8aae53 | 2013-07-15 11:06:00 +0200 | [diff] [blame] | 47 | Print names of plugins that can be installed during init process. |
| 48 | |
David Pursehouse | 4495f30 | 2013-12-10 18:41:38 +0900 | [diff] [blame] | 49 | --install-plugin:: |
Dariusz Luksza | 3c22678 | 2013-07-15 13:54:30 +0200 | [diff] [blame] | 50 | Automatically install plugin with given name without asking. |
David Ostrovsky | 359900e | 2013-12-10 01:04:09 +0100 | [diff] [blame] | 51 | This option may be supplied more than once to install multiple |
| 52 | plugins. |
Dariusz Luksza | 3c22678 | 2013-07-15 13:54:30 +0200 | [diff] [blame] | 53 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 54 | == CONTEXT |
Shawn O. Pearce | 2fe738b | 2009-11-17 14:52:07 -0800 | [diff] [blame] | 55 | This command can only be run on a server which has direct |
| 56 | connectivity to the metadata database, and local access to the |
| 57 | managed Git repositories. |
| 58 | |
| 59 | GERRIT |
| 60 | ------ |
| 61 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 62 | |
| 63 | SEARCHBOX |
| 64 | --------- |