Skip to main content

mr token list

Show the API tokens for the authenticated account, including their id, label, and display prefix. The secret value itself is never shown after creation.

Usage

mr token list

Examples

List your tokens

mr token list

As raw JSON

mr token list --json

Flags

This command has no local flags.

Inherited global flags

FlagTypeDefaultDescription
--jsonboolfalseOutput raw JSON
--no-headerboolfalseOmit table headers
--pageint1Page number for list commands (default page size: 50)
--quietboolfalseOnly output IDs
--serverstringhttp://localhost:8181mahresources server URL (env: MAHRESOURCES_URL)

Output

Table with ID, Name, Prefix and LastUsed columns; --json emits the stored records (ID, CreatedAt, UpdatedAt, userId, name, prefix, disabled, plus expiresAt and lastUsedAt when set)

Exit Codes

0 success; 1 error (not authenticated, network error, or token not found)