revoke

Revoke (delete) a service token.

The token revoke command permanently invalidates one or more service tokens.

Usage#

redenv token revoke [token-ids...]

Arguments#

NameRequiredDescription
token-idsNoToken ID(s) to revoke (interactive if omitted)

Options#

FlagDescription
-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_token2

Interactive 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.