Skip to main content
Revoke a token. nsc token revoke immediately revokes a token, preventing it from being used for further authentication. Once revoked, a token cannot be reactivated and any attempts to use it will fail. Revoking tokens is important for security best practices, especially when:
  • A token is no longer needed
  • A token may have been compromised
  • Access needs to be removed immediately
  • Rotating credentials as part of regular security maintenance

Usage

Example

Output

Options

—token_id <id>

The token ID to revoke. Required.
Last modified on August 20, 2026