scout login
Authenticate with the Scout platform using an OAuth2 authorization code flow with PKCE. The command opens your browser to complete authentication, then stores tokens locally for subsequent commands.

Usage
scout login --account <SLUG> [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
-a, --account | string | (required) | Account slug. Env: SCOUT_ACCOUNT_SLUG |
--auth-url | string | https://id.base14.io | Authentication server URL. Env: SCOUT_AUTH_URL |
--force | bool | false | Re-authenticate even if a valid session exists |
Examples
Authenticate with your organization:
scout login --account my-org
Force re-authentication to refresh tokens:
scout login --account my-org --force
Use a custom authentication server:
scout login --account my-org --auth-url https://auth.example.com
Use environment variables instead of flags:
export SCOUT_ACCOUNT_SLUG=my-org
scout login
How It Works
- Validates the account exists on the authentication server
- Starts a local HTTP listener for the OAuth2 callback
- Opens your browser to the authorization URL
- Exchanges the authorization code for access and refresh tokens
- Discovers the Scout API URL via the accounts API
- Stores tokens in your system keychain (falls back to
~/.scout/credentials.jsonwith mode0600)
note
The login flow has a 5-minute timeout. If you don't complete browser authentication within that window, the command will exit.
tip
If the browser doesn't open automatically, the command prints a URL you can copy and paste manually.
See Also
Was this page helpful?