Overview
Use CLI authentication to manage multiple local profiles and switch accounts quickly.
You can:
- log in with an API key
- start an OAuth login flow
- list saved profiles
- delete a profile
- switch active profile
Login with API key (hardcoded key example)
Replace xx and xxx with your real profile name and API key in production usage.
Login with OAuth flow
This starts the OAuth browser flow and stores credentials under a profile with
random name.
List profiles
Example output:
Delete a profile
Deleting a profile removes local saved credentials for that profile.
Switch active profile
Example:
Troubleshooting
- Invalid API key: verify key value and permissions.
- OAuth flow not opening: check browser defaults and callback handling.
- Profile not found: run
profile list and confirm the exact profile name.