chainabit auth use
Switch between the saved Subscription sign-in and the saved Chainabit API key (subscription | api-key); neither is changed.
Synopsis
chainabit auth use <kind> [options]Arguments
| Argument | Description | Default |
|---|---|---|
<kind> | Required. | — |
Options shared by every command are described in Global options and shared behavior.
Behavior
Chooses which saved credential the CLI uses: the Subscription sign-in (subscription) or the Chainabit API key (api-key). Neither credential is changed or removed, so you can switch back at any time. If the credential you ask for is not saved, nothing changes: for an API key the command exits with an authentication error and points to auth login --api-key. Any other value exits with a usage error.
A Chainabit API key reaches only the operations its scopes allow, and the interactive conversation is not available with a key. See configuration for the two sign-in methods.
Examples
chainabit auth use api-key
chainabit auth use subscription