Skip to content

feat(cli): add phala whoami command#175

Merged
Leechael merged 2 commits intomainfrom
feat/cli-whoami
Feb 12, 2026
Merged

feat(cli): add phala whoami command#175
Leechael merged 2 commits intomainfrom
feat/cli-whoami

Conversation

@Leechael
Copy link
Copy Markdown
Collaborator

Summary

  • Add phala whoami — prints the current username (single line, pipe-friendly)
  • --json returns structured output with username, email, workspace, and profile

Test plan

  • bun run fmt && bun run lint && bun run type-check pass
  • bun run test — 316 pass, 0 fail
  • Manual: phala whoamileechael
  • Manual: phala whoami --json{username, email, workspace, profile}

Simple command that prints the current username. Supports --json for
structured output with username, email, workspace, and profile.
- whoami: output "username (workspace)" instead of just username
- status: force CLI upgrade check (bypass 24h TTL cache) and display
  result — "CLI is up to date." or update notice with instructions
@Leechael Leechael merged commit b269721 into main Feb 12, 2026
4 checks passed
@Leechael Leechael deleted the feat/cli-whoami branch February 12, 2026 10:22
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.

2 participants