h0 auth
Authentication commands.
login
h0 auth login [OPTIONS]
Authenticate via OAuth 2.0 PKCE flow. Opens a browser, starts a local callback server, exchanges the code for tokens, and stores them in the config file.
Options
| Option | Description |
|---|---|
--url | API endpoint |
--cognito-domain | Cognito domain override |
--client-id | OAuth client ID override |
Example
h0 auth login
# Browser opens, complete authentication
# Tokens saved to ~/.hull0/config.toml
whoami
h0 auth whoami
Display current authenticated user.
Example
$ h0 auth whoami
user_id: 550e8400-e29b-41d4-a716-446655440000
email: user@example.com
tier: pro