| 52 | } |
| 53 | |
| 54 | func (c *SecretsEnableCommand) Help() string { |
| 55 | helpText := ` |
| 56 | Usage: vault secrets enable [options] TYPE |
| 57 | |
| 58 | Enables a secrets engine. By default, secrets engines are enabled at the path |
| 59 | corresponding to their TYPE, but users can customize the path using the |
| 60 | -path option. |
| 61 | |
| 62 | Once enabled, Vault will route all requests which begin with the path to the |
| 63 | secrets engine. |
| 64 | |
| 65 | Enable the AWS secrets engine at aws/: |
| 66 | |
| 67 | $ vault secrets enable aws |
| 68 | |
| 69 | Enable the SSH secrets engine at ssh-prod/: |
| 70 | |
| 71 | $ vault secrets enable -path=ssh-prod ssh |
| 72 | |
| 73 | Enable the database secrets engine with an explicit maximum TTL of 30m: |
| 74 | |
| 75 | $ vault secrets enable -max-lease-ttl=30m database |
| 76 | |
| 77 | Enable a custom plugin (after it is registered in the plugin registry): |
| 78 | |
| 79 | $ vault secrets enable -path=my-secrets -plugin-name=my-plugin plugin |
| 80 | |
| 81 | OR (preferred way): |
| 82 | |
| 83 | $ vault secrets enable -path=my-secrets my-plugin |
| 84 | |
| 85 | For a full list of secrets engines and examples, please see the documentation. |
| 86 | |
| 87 | ` + c.Flags().Help() |
| 88 | |
| 89 | return strings.TrimSpace(helpText) |
| 90 | } |
| 91 | |
| 92 | func (c *SecretsEnableCommand) Flags() *FlagSets { |
| 93 | set := c.flagSet(FlagSetHTTP) |