nsc token list

List all revokable tokens in your workspace.

nsc token list displays all revokable tokens that have been created in your workspace. By default, only active (non-revoked) tokens are shown, but you can include revoked tokens using the --include_revoked flag.

Usage

nsc token list [flags]

Examples

List all active tokens:

$ nsc token list

List all tokens including revoked ones:

$ nsc token list --include_revoked

List tokens in JSON format:

$ nsc token list --output json

Flags

--include_revoked (optional)

Include revoked tokens in the list. By default, only active tokens are displayed.

$ nsc token list --include_revoked

--output string (optional)

Output format for the token list. Options: table (default), json.

  • table: Display tokens in a formatted table with columns for ID, name, description, creation date, and status
  • json: Output full token details as JSON for programmatic processing

Output Information

The list displays the following information for each token:

  • Token ID: Unique identifier for the token
  • Name: The name assigned when creating the token
  • Description: Human-readable description of the token's purpose
  • Created: When the token was created
  • Expires: When the token will expire
  • Status: Whether the token is active or revoked
Last updated