chainabit auth
Manage authentication, device approvals, and API keys.
Synopsis
text
chainabit auth <command> [options]Subcommands
| Command | Purpose |
|---|---|
chainabit auth developer-token | Manage API keys for CI/CD and project automation. |
chainabit auth device | Start browser device-approval flow explicitly. |
chainabit auth devices | Manage your registered devices |
chainabit auth keys | Alias for auth developer-token — manage API keys. |
chainabit auth login | Authenticate with your Chainabit account. Omit flags for browser login. |
chainabit auth logout | Sign out of the credential in use (or the one named) and invalidate its server session. |
chainabit auth refresh | Force-refresh the stored access token using the saved refresh token. |
chainabit auth register | Create a new Chainabit account. |
chainabit auth sessions | List your registered devices and identify this session |
chainabit auth token | Print the raw access token to stdout (for piping). |
chainabit auth use | Switch between the saved Subscription sign-in and the saved Chainabit API key (subscription | api-key); neither is changed. |
chainabit auth whoami | Show 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