In dev mode, the Key/value secrets engine is enabled by default at secret/.
- Verify that the secret does not exist
vault kv get secret/hello - Put a new key-value pair inside
vault kv put secret/hello foo=world - If new data is put, old data is replaced
vault kv put secret/hello new=yes foo=another - To get data inside a secret
vault kv get secret/hello #Returns === Data === Key Value --- ----- foo another new yes - To get a specific field
vault get -field=new secret/hello #Returns "yes" - Information can also be json
vault get -format=json secret/hello - To delete all data inside
hellovault kv delete secret/hello