List KV secrets
List all keys under a KV path
vault kv list -mount=secret path/to/
- tool
- vault31 commands
More vault commands
-
vault kv delete -mount=secret path/to/secretSoft-delete the latest version of a KV secret; kv undelete brings it back
-
vault kv metadata get -mount=secret path/to/secretShow all versions with creation dates and deletion status
-
vault token create -policy=read-only -ttl=1hIssue a short-lived token limited to one policy
-
vault auth listShow all enabled auth methods in Vault
-
vault auth enable kubernetes && vault write auth/kubernetes/config kubernetes_host=https://$KUBERNETES_PORT_443_TCP_ADDR:443Enable and configure the Kubernetes auth method