actual mint-token [OPTIONS] --service-account-id <UUID> --kid <KID>
Options
| Option | Default | What it does |
|---|---|---|
--service-account-id <UUID> | Service-account id (a UUID). Becomes the assertion iss/sub. Also set by ACTUAL_SERVICE_ACCOUNT_ID. | |
--kid <KID> | Registered key id, placed in the assertion header so the server picks the matching public key. Also set by ACTUAL_SERVICE_ACCOUNT_KID. | |
--key <PATH> | Path to the service-account PRIVATE key in PEM (RSA for RS256, EC P-256 for ES256). An EC key must be PKCS#8 (“BEGIN PRIVATE KEY”); SEC1 (“BEGIN EC PRIVATE KEY”, what openssl ecparam -genkey writes) is refused, so convert it first with openssl pkcs8 -topk8 -nocrypt. Alternatively set ACTUAL_SERVICE_ACCOUNT_KEY to the PEM contents directly — preferred with a secret manager, and it keeps the key off argv. Also set by ACTUAL_SERVICE_ACCOUNT_KEY_FILE. | |
--alg <ALG> | Signing algorithm (rs256 or es256). Inferred from the key when omitted. HS*/none are refused | |
--issuer <URL> | OAuth issuer base URL; the token endpoint is <issuer>/api/oauth/token. Defaults to the production server, falling back through ACTUAL_AUTH_URL. Override for staging or a local server | |
--aud <URL> | Assertion audience. Defaults to the resolved issuer origin, which the server accepts alongside <issuer>/api/oauth/token | |
--scope <SCOPE> | Requested scope (repeatable), a subset of the principal’s grant (e.g. adr:query, adr:review). When omitted the server mints the principal’s full whitelist | |
--assertion-ttl-seconds <SECONDS> | 60 | Assertion lifetime in seconds, clamped to 1..=300. Default 60, which an explicit 0 also selects |
--json | Print the full token response as one line of JSON instead of just the raw access token |

