CLI reference

norcube auth token

Print a short-lived access token for a service

Not verified yet

Prints an access token for the service (--audience) and organization (--org, else the profile's) to stdout, for curl or other tools:

curl -H "Authorization: Bearer $(norcube auth token --audience langsync)" …

The token is valid for a few minutes. Treat it like a password: it acts as you in that organization.

Usage

norcube auth token [flags]

Examples

norcube auth token --audience langsync
norcube auth token --audience snapdb --org acme -o json --query expiresAt

Flags

FlagDefaultDescription
--audienceauthService the token is for: auth, backup, billing, domainradar, langsync, prompthub, snapdb

Every command also takes the global flags: --profile, --org, -o, --query, --debug and more.

See also

  • norcube auth: Check the session, manage CLI sessions and CI tokens, and get access tokens for scripts

On this page