Skip to content

chainabit auth ​

Manage authentication, device approvals, and API keys.

Synopsis ​

text
chainabit auth <command> [options]

Subcommands ​

CommandPurpose
chainabit auth developer-tokenManage API keys for CI/CD and project automation.
chainabit auth deviceStart browser device-approval flow explicitly.
chainabit auth devicesManage your registered devices
chainabit auth keysAlias for auth developer-token — manage API keys.
chainabit auth loginAuthenticate with your Chainabit account. Omit flags for browser login.
chainabit auth logoutSign out of the credential in use (or the one named) and invalidate its server session.
chainabit auth refreshForce-refresh the stored access token using the saved refresh token.
chainabit auth registerCreate a new Chainabit account.
chainabit auth sessionsList your registered devices and identify this session
chainabit auth tokenPrint the raw access token to stdout (for piping).
chainabit auth useSwitch between the saved Subscription sign-in and the saved Chainabit API key (subscription | api-key); neither is changed.
chainabit auth whoamiShow the current authentication state.

Behavior ​

Choose login/device for authentication, whoami to inspect identity, and developer-token for automation keys. Logout clears local credentials and the saved default workspace; it is separate from key revocation. This group has no default operation.

Examples ​

bash
chainabit auth whoami

Built with purpose. chainabit.com