token
Command Reference

brainbase token

Issue and manage long-lived personal access tokens (PATs) for CI and unattended scripts. Tokens are prefixed bbpat_…. See Authentication for how they're resolved.

brainbase token create

Issue a long-lived CLI key. Set the result as BRAINBASE_TOKEN to authenticate without brainbase login.

bash
brainbase token create --scope publish
FlagDescription
--name <label>Token label (alias -n).
--scopes <list>Comma-separated scopes. Allowed: read, publish, admin. Default read,publish. --scope is accepted as an alias.

brainbase token list

Show your active tokens.

bash
brainbase token list

brainbase token revoke <id>

Revoke a token by id.

bash
brainbase token revoke <token-id>

brainbase token clear

Forget the locally stored PAT without revoking it server-side (use revoke <id> to revoke).

bash
brainbase token clear