Get started
auth login
Usage
uqbitz auth login Log in to UQBITZ (email/password, or --token with an API key for SSO/CI)
Options
| Name | Description | Default |
|---|---|---|
-u, --url <url> | API base URL (default: the configured one) | |
-e, --email <email> | Email address | |
-p, --password <password> | Password (omit to be prompted) | |
-t, --token <apikey> | Log in with an API key — required for Google/GitHub SSO accounts and CI | |
--mfa-code <code> | TOTP code for MFA-protected accounts (6 digits) |
auth logout
Usage
uqbitz auth logout Log out and clear local credentials
Options
| Name | Description | Default |
|---|---|---|
--all | Revoke all sessions across devices (POST /auth/logout-all) |
auth status
Usage
uqbitz auth status Show current session status
Options
| Name | Description | Default |
|---|---|---|
--json | Output structured JSON |
auth whoami
Usage
uqbitz auth whoami Print the authenticated user
Options
| Name | Description | Default |
|---|---|---|
--json | Output structured JSON |
auth sessions list
Usage
uqbitz auth sessions list List active sessions for the current user
Options
| Name | Description | Default |
|---|---|---|
--json | Output structured JSON |
auth sessions revoke
Usage
uqbitz auth sessions revoke <sessionId> Revoke a specific session
Arguments
| Name | Description | Default |
|---|---|---|
sessionId Required |
Options
| Name | Description | Default |
|---|---|---|
-y, --yes | Skip confirmation prompt |
auth api-keys list
Usage
uqbitz auth api-keys list List your API keys (secrets are not shown)
Options
| Name | Description | Default |
|---|---|---|
--json | Output structured JSON |
auth api-keys create
Usage
uqbitz auth api-keys create Create a new API key (token shown only once)
Options
| Name | Description | Default |
|---|---|---|
-n, --name <name> | Human-readable label (e.g. "ci-deploy") | |
-s, --scope <scope> | Scope (repeatable) | |
--expires-in-days <days> | Expiration in days (1-365, default: never) | |
--json | Output structured JSON (includes the secret) |
auth api-keys revoke
Usage
uqbitz auth api-keys revoke <keyId> Revoke an API key
Arguments
| Name | Description | Default |
|---|---|---|
keyId Required |
Options
| Name | Description | Default |
|---|---|---|
-y, --yes | Skip confirmation prompt |
auth mfa status
Usage
uqbitz auth mfa status Show MFA status for the current user
Options
| Name | Description | Default |
|---|---|---|
--json | Output structured JSON |
auth mfa enable
Usage
uqbitz auth mfa enable Enable MFA: scan QR with an authenticator app, then verify
Options
| Name | Description | Default |
|---|---|---|
--code <code> | TOTP code (skip the prompt; useful for scripted enablement) |
auth mfa disable
Usage
uqbitz auth mfa disable Disable MFA (requires a current TOTP code)
Options
| Name | Description | Default |
|---|---|---|
--code <code> | TOTP code (skip the prompt) | |
-y, --yes | Skip confirmation prompt |
auth profile show
Usage
uqbitz auth profile show Show your profile
Options
| Name | Description | Default |
|---|---|---|
--json | Output structured JSON |
auth profile update
Usage
uqbitz auth profile update Update editable profile fields (name, phone, locale, timezone, avatar)
Options
| Name | Description | Default |
|---|---|---|
--name <name> | Full display name | |
--first-name <first> | First name | |
--last-name <last> | Last name | |
--display-name <name> | Public display name | |
--phone <phone> | Phone (E.164) | |
--avatar-url <url> | Avatar image URL | |
--locale <locale> | Locale, e.g. pt-BR | |
--timezone <tz> | Timezone, e.g. America/Sao_Paulo | |
--json | Output structured JSON |
login
Usage
uqbitz login Authorize this assistant in the browser (DCR + PKCE); the key never appears on screen
Options
| Name | Description | Default |
|---|---|---|
-u, --url <url> | API base URL (default: the configured one) | |
-a, --assistant <name> | Assistant name shown on the authorization page (default: uqbitz-cli@<hostname>) | |
--json | Output structured JSON (never includes the key) |
status
Usage
uqbitz status Session status for the assistant: org, validity and what is still pending
Options
| Name | Description | Default |
|---|---|---|
--json | Output structured JSON |
help
Usage
uqbitz help [command...] Show help for a command; with --json, print the machine-readable command manifest
Arguments
| Name | Description | Default |
|---|---|---|
command Optional |
Options
| Name | Description | Default |
|---|---|---|
--json | Print the full command manifest as JSON |
health
Usage
uqbitz health Check API health
Options
| Name | Description | Default |
|---|---|---|
-u, --url <url> | API base URL (default: the configured one) |
Global options
| Name | Description | Default |
|---|---|---|
-V, --version | output the version number | |
--api-url <url> | Override API base URL for this command | |
--profile <name> | Use an isolated profile (~/.config/uqbitz/profiles/<name>) instead of the shared one |