Skip to content

feat: add whoami command and api-keys current subcommand - #242

Open
jeff-schnitter wants to merge 2 commits into
mainfrom
add-whoami-command
Open

jeff-schnitter wants to merge 2 commits into
mainfrom
add-whoami-command

Conversation

@jeff-schnitter

Copy link
Copy Markdown
Collaborator

Summary

  • cortex whoami: decodes the current JWT API key and displays tenant, tenant ID, token type, auth scope, issued/expiry times, and last 4 chars
  • cortex api-keys current: prints the raw API key in use (useful for shell substitution, e.g. $(cortex api-keys current))
  • Removes the top-level cortex ai-skills command — the ai-skills solution is already available via cortex solutions list / cortex solutions install -s ai-skills
  • Shows help instead of a "Missing command" error when invoked with global flags but no subcommand (e.g. cortex -t my-tenant)

Test plan

  • cortex whoami displays decoded JWT fields correctly
  • cortex api-keys current prints the API key
  • cortex -t <tenant> (no subcommand) shows help
  • cortex ai-skills is gone; cortex solutions list still shows ai-skills

🤖 Generated with Claude Code

jeff-schnitter and others added 2 commits September 15, 2026 12:04
- cortex whoami: decodes the current API key JWT and displays identity
  metadata (base URL, tenant, user ID, token type, auth scope,
  issued/expiry timestamps, last 4 chars)
- cortex api-keys current: prints the raw API key for use in scripts,
  e.g. export KEY=$(cortex api-keys current)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- whoami: decodes the current JWT API key and displays tenant, user/tenant ID, token type, auth scope, issued/expiry times, and last 4 chars
- api-keys current: prints the raw API key in use (useful for shell substitution)
- Remove top-level ai-skills command (functionality lives under solutions)
- Show help instead of error when cortex is invoked with no subcommand

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant