| 153 | } |
| 154 | |
| 155 | func (c *ServerCommand) Help() string { |
| 156 | helpText := ` |
| 157 | Usage: vault server [options] |
| 158 | |
| 159 | This command starts a Vault server that responds to API requests. By default, |
| 160 | Vault will start in a "sealed" state. The Vault cluster must be initialized |
| 161 | before use, usually by the "vault operator init" command. Each Vault server must |
| 162 | also be unsealed using the "vault operator unseal" command or the API before the |
| 163 | server can respond to requests. |
| 164 | |
| 165 | Start a server with a configuration file: |
| 166 | |
| 167 | $ vault server -config=/etc/vault/config.hcl |
| 168 | |
| 169 | Run in "dev" mode: |
| 170 | |
| 171 | $ vault server -dev -dev-root-token-id="root" |
| 172 | |
| 173 | For a full list of examples, please see the documentation. |
| 174 | |
| 175 | ` + c.Flags().Help() |
| 176 | return strings.TrimSpace(helpText) |
| 177 | } |
| 178 | |
| 179 | func (c *ServerCommand) Flags() *FlagSets { |
| 180 | set := c.flagSet(FlagSetHTTP) |