revoke
Revoke (delete) a service token.
The token revoke command permanently invalidates one or more service tokens.
Usage#
redenv token revoke [token-ids...]Arguments#
| Name | Required | Description |
|---|---|---|
token-ids | No | Token ID(s) to revoke (interactive if omitted) |
Options#
| Flag | Description |
|---|---|
-p, --project <name> | Project name |
Examples#
# Revoke interactively (select from list)
redenv token revoke
# Revoke specific token
redenv token revoke stk_yYt2HXRprwYgpvwv
# Revoke multiple tokens
redenv token revoke stk_token1 stk_token2Interactive Flow#
$ redenv token revoke
? Select project: my-app
⠋ Fetching tokens...
? Select token(s) to revoke:
◉ ci-dev (stk_yYt2HXRprwYgpvwv)
◯ api (stk_g38OHzGnUOoiARfh)
? Are you sure you want to revoke 1 token(s)? Any application using them will immediately lose access. Yes
⠋ Revoking token(s)...
✔ Successfully revoked 1 token(s).Warning
Revoking a token immediately invalidates it. Applications using this token will lose access to secrets instantly. This action cannot be undone.
Related Commands#
- token list - List tokens to find the ID
- token create - Create a replacement token