Table of Contents
- Creating a Token
- Looking Up a Token
- Renewing a Token
- Revoking a Token
- Checking Token Capabilities
- References
1. Creating a Token
Use thevault token create command to generate a new token with a specified TTL (time-to-live) and attached policies.
You can further customize a token with
-display_name, multiple policies, and an explicit maximum TTL.-display_name: Human-friendly identifier-policy: Comma-separated Vault policies-ttl: Initial lifetime (e.g.,24h)-explicit-max-ttl: Maximum lifetime across renewals
2. Looking Up a Token
Inspect metadata for any token by running:$VAULT_TOKEN:
3. Renewing a Token
Extend a token’s TTL usingvault token renew. You can renew by token ID or accessor:
4. Revoking a Token
To immediately invalidate a token, use:Revoking a token is irreversible. Any sessions or processes using that token will lose access immediately.