Login with root token.
Click on the command (
⮐) will automatically copy it into the terminal and execute it.
vault login root
First, check the current version of the key/value secrets engine that is ready to use. Run the following command:
vault secrets list -detailed
In the output, locate
secret/ and check its version.
Path Type ... Options Description ---- ---- ... ------- ----------- cubbyhole/ cubbyhole ... map per-token private secret storage identity/ identity ... map identity store secret/ kv ... map[version:2] key/value secret storage sys/ system ... map system endpoints used for control, policy and debugging
Under Options, it should display that the kv version is 2.
When you run Vault in development mode, the key/value version 2 gets enabled by default.
Run the following command to view the full list of optional parameters
vault kv operation:
vault kv -h
To clear the screen: