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

NameDescription
deleteDeletes 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
destroyPermanently removes the specified versions' data from the key-value store. If no key exists at the path, no action is taken
enable-versioningThis command turns on versioning for the backend at the provided path
getRetrieves 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
listLists data from Vault's key-value store at the given path
metadataThis 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
patchWrites the data to the given path in the key-value store. The data can be of any type
putWrites the data to the given path in the key-value store. The data can be of any type
rollbackRestores 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
undeleteUndeletes 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

NameDescription
--help, -hDisplay help