Auth & account

Login, account, profile, company (tenant), config, and diagnostics commands

axhub auth

Manage login, tokens, and account authentication.

axhub auth idp

Configure company SSO (OIDC) identity providers.

axhub auth idp create

Register an OIDC identity provider.

FlagTypeDescriptionDefault
--audiencestring
--client-idstring
--client-secretstring
--dry-runbooleantrue
--enforcedboolean
--executeboolean
--group-rolestring
--issuer-urlstring
--jit-provisioningboolean
--namestring
--providerstring
--tenantstring
--tenant-resolution-strategystringDOMAIN
--user-typestringINTERNAL

axhub auth idp disable

Disable an identity provider.

FlagTypeDescriptionDefault
--dry-runbooleantrue
--executeboolean
--provider_idstring
--tenantstring

axhub auth idp enable

Enable an identity provider.

FlagTypeDescriptionDefault
--dry-runbooleantrue
--executeboolean
--provider_idstring
--tenantstring

axhub auth idp list

List registered identity providers.

FlagTypeDescriptionDefault
--tenantstring

axhub auth idp providers

List supported provider types.

FlagTypeDescriptionDefault
--tenantstring

axhub auth idp test

Test an identity provider configuration.

FlagTypeDescriptionDefault
--provider_idstring
--tenantstring

axhub auth login

Log in via browser OAuth.

FlagTypeDescriptionDefault
--device-codestringResume an already-issued AxHub OAuth device code (env: AXHUB_AUTH_DEVICE_CODE)
--forceboolean
--no-browserboolean
--resume-lastbooleanResume the latest locally cached AxHub OAuth device flow for this profile
--scopesstring
--tenantstring

axhub auth logout

Log out and clear stored tokens.

FlagTypeDescriptionDefault
--dry-runboolean

axhub auth oauth

Manage OAuth clients and consents.

axhub auth oauth client

Register and view OAuth clients.

axhub auth oauth client create

Register an OAuth client (DCR).

FlagTypeDescriptionDefault
--appstring
--auth-methodstring
--copyboolean
--dry-runbooleantrue
--executeboolean
--grant-typestring
--namestring
--redirect-uristring
--scopestring
--typestring

axhub auth oauth client get

Get OAuth client details.

FlagTypeDescriptionDefault
--client_idstring

Manage granted OAuth consents.

Revoke an OAuth consent.

FlagTypeDescriptionDefault
--client_idstring
--dry-runbooleantrue
--executeboolean

axhub auth oauth revoke

Revoke an OAuth token.

FlagTypeDescriptionDefault
--client-idstring00000000-0000-4000-8000-000000000001
--client-secretstring
--client-secret-filestring
--dry-runbooleantrue
--executeboolean
--tokenstring
--token-type-hintstring

axhub auth pat

Manage personal access tokens (PATs).

axhub auth pat issue

Issue a new PAT.

FlagTypeDescriptionDefault
--expires-in-daysstring
--namestring
--no-saveboolean
--show-tokenboolean
--useboolean

axhub auth pat list

List PATs.

FlagTypeDescriptionDefault
--reconcileboolean

axhub auth pat revoke

Revoke a PAT.

FlagTypeDescriptionDefault
--dry-runbooleantrue
--executeboolean
--idstring

axhub auth pat rotate

Rotate (reissue) a PAT.

FlagTypeDescriptionDefault
--expires-in-daysstring
--namestring
--show-tokenboolean

axhub auth pat unset

Unset the locally stored PAT.

(no options)

axhub auth pat use

Select the PAT to use.

FlagTypeDescriptionDefault
--idstring

axhub auth pat whoami

Show the current PAT's owner.

(no options)

axhub auth refresh

Refresh the access token.

FlagTypeDescriptionDefault
--no-browserboolean
--scopesstring

axhub auth status

Show authentication status.

(no options)

axhub auth whoami

Show the current logged-in account.

(no options)


axhub profile

Manage CLI profiles (connection environments).

axhub profile add

Add a new profile.

FlagTypeDescriptionDefault
--defaultboolean
--endpointstring
--namestring

axhub profile current

Show the current profile.

(no options)

axhub profile list

List profiles.

(no options)

axhub profile remove

Remove a profile.

FlagTypeDescriptionDefault
--namestring

axhub profile use

Switch the active profile.

FlagTypeDescriptionDefault
--namestring

axhub tenants

View and manage companies (tenants).

axhub tenants create

Create a company.

FlagTypeDescriptionDefault
--namestring
--slugstring

axhub tenants delete

Delete a company.

FlagTypeDescriptionDefault
--dry-runbooleantrue
--executeboolean
--slug_or_idstringTenant slug or UUID. Positional form matches tenants get <slug> / apps delete <slug> (the majority CLI shape). The legacy --tenant <slug> flag stays as a hidden alias so scripts that already use it keep working; passing both is a clap usage error (conflicts_with)
--yes -yboolean

axhub tenants get

Get company details.

FlagTypeDescriptionDefault
--slug_or_idstring
--tenantstring

axhub tenants icon

Manage the company icon.

axhub tenants icon clear

Remove the company icon.

FlagTypeDescriptionDefault
--dry-runbooleantrue
--executeboolean
--tenantstring

axhub tenants icon set

Set the company icon.

FlagTypeDescriptionDefault
--filestring
--icon-urlstring
--tenantstring

axhub tenants icon sign

Issue a signed URL for icon upload.

FlagTypeDescriptionDefault
--content-typestringMIME type of the file you'll PUT to the presigned URL. Allowed: image/png, image/jpeg, image/webp, image/gif, image/svg+xml
--tenantstring

axhub tenants list

List companies.

FlagTypeDescriptionDefault
--allboolean

axhub tenants update

Update company details.

FlagTypeDescriptionDefault
--descriptionstring
--dry-runbooleantrue
--executeboolean
--namestring
--slug_or_idstringTenant slug or UUID. Mirrors tenants get <slug> / tenants create --slug <slug>. --tenant <slug> is kept as a hidden backward-compat alias; passing both is a clap usage error (conflicts_with) so destructive tenants update cannot silently target the wrong tenant — review of PR #196 (.omc/ultraqa-live-prod/reviews/PR-196.md) flagged the previous silent-positional-wins behaviour as a footgun

axhub tenants whoami

Show the active company.

FlagTypeDescriptionDefault
--tenantstring

axhub config

Manage CLI configuration.

axhub config explain

Explain the current config and where each value comes from.

(no options)


axhub doctor

Diagnose install, auth, and environment.

FlagTypeDescriptionDefault
--argsstring
--dry-runboolean
--fixboolean
--offlinebooleanSkip the network reachability probe
--send-reportboolean

axhub update

Update the axhub CLI.

axhub update apply

Apply the update.

FlagTypeDescriptionDefault
--dry-runbooleanPreview mode: print the apply plan without downloading or swapping. Defaults true — destructive paths require explicit --execute per .claude/rules/product-development.md "Destructive Command Safety"true
--executebooleanCommit the apply plan: download, verify, and atomically swap the running binary. Conflicts with --dry-run
--forcebooleanAllow applying an older release that would otherwise be rejected by the downgrade gate. Does NOT bypass cosign verification — a signature/certificate failure still blocks the swap
--yes -ybooleanSkip the post-confirm prompt during --execute. No effect in dry-run

axhub update check

Check for updates.

(no options)