HashiCorp Cloud Platform
hcp vault-secrets secrets update
Command: hcp vault-secrets secrets update
The hcp vault-secrets secrets update
command updates an existing rotating
or dynamic secret under a Vault Secrets application. The configuration for
updating your rotating or dynamic secret will be read from the provided HCL
config file. The following fields are required in the config file: [type
details]. For help populating the details for a dynamic or rotating secret,
please refer to the API reference
documentation.
Usage
$ hcp vault-secrets secrets update NAME --data-file=DATA_FILE_PATH [Optional
Flags]
Examples
Update a rotating secret in the Vault Secrets application on your active profile:
$ hcp vault-secrets secrets update secret_1 --secret-type=rotating
--data-file=tmp/secrets1.txt
Positional arguments
NAME
- The name of the secret to update.
Required flags
--data-file=DATA_FILE_PATH
- File path to read secret data from. Set this to '-' to read the secret data from stdin.
Optional flags
--secret-type=SECRET_TYPE
- The type of secret to update: rotating or dynamic.
Inherited Flags
--app=NAME
- The name of the Vault Secrets application. If not specified, the value from the active profile will be used.