vault kv
This command has subcommands for interacting with Vault's key-value store. Here are some simple examples, and more detailed examples are available in the subcommands or the documentation
Subcommands
Name | Description |
---|
delete | Deletes the data for the provided version and path in the key-value store. The versioned data will not be fully removed, but marked as deleted and will no longer be returned in normal get requests |
destroy | Permanently removes the specified versions' data from the key-value store. If no key exists at the path, no action is taken |
enable-versioning | This command turns on versioning for the backend at the provided path |
get | Retrieves the value from Vault's key-value store at the given key name. If no key exists with that name, an error is returned. If a key exists with that name but has no data, nothing is returned |
list | Lists data from Vault's key-value store at the given path |
metadata | This command has subcommands for interacting with the metadata endpoint in Vault's key-value store. Here are some simple examples, and more detailed examples are available in the subcommands or the documentation |
patch | Writes the data to the given path in the key-value store. The data can be of any type |
put | Writes the data to the given path in the key-value store. The data can be of any type |
rollback | Restores a given previous version to the current version at the given path. The value is written as a new version; for instance, if the current version is 5 and the rollback version is 2, the data from version 2 will become version 6 |
undelete | Undeletes the data for the provided version and path in the key-value store. This restores the data, allowing it to be returned on get requests |
Options
Name | Description |
---|
--help, -h | Display help |