HashiCorp Cloud Platform
secrets versions
Command: vlt secrets versions
The secrets versions
command returns the last 10 versions of secrets for a
given application.
Examples
Retrieve available versions of a secret named "expiration" stored under the "company-card" application.
$ vlt secrets versions --app-name="company-card" expiration
Tip
If the CLI is already configured to point to the "company-card" application via
vlt config init
, you can omit the --app-name
parameter.
Example output:
Version Created At Created By
4 2023-05-23T00:07:17.774Z learn-hcp
3 2023-05-23T00:07:13.002Z learn-hcp
2 2023-05-23T00:00:20.590Z learn-hcp
1 2023-05-22T23:26:04.680Z learn-hcp
Usage
$ vlt secrets versions [options] secret_name
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.