secrets create
Command: vlt secrets create
Use the secrets create
to create a new secret in a target application.
Examples
Create a secret with a key name, "expiration" with value of "October 2024" to
the company-card
application.
$ vlt secrets create --app-name="company-card" expiration="October 2024"
Successfully created secret with name expiration
Tip
In the absence of --app-name
parameter, the command will create secrets under
the currently configured application. You can run the vlt config
command to
see which application is targeted.
Usage
$ vlt secrets create [options] secret_name[=]secret_value
Command options
--organization
(string: "")
- HCP organization that the application is in. Use-o
for its shorthand.--project
(string: "")
- HCP project that the application is in. Use-p
for its shorthand.--app-name
(string: "")
- The application that the secret is in. Use-a
for its shorthand.--format
(string: "")
- The output format you would like (json). Use-f
for its shorthand.