logstreem login
logstreem login
Authenticate the CLI, inspect the active token, manage profiles.
logstreem login opens a browser, authorises the CLI and writes a token to ~/.logstreem/config.toml with 0600 permissions. On a headless box, paste a token instead.
$
logstreem loginAuthorise the CLI. Without --token this opens a browser.
Usage
logstreem login [--token <token>] [--profile <name>]| Flag | Type | Description |
|---|---|---|
| --token <token> | string | Skip the browser and store this token. For SSH sessions and CI. |
| --profile <name> | string | Store under a named profile instead of default. |
$
logstreem whoamiShow the active profile, token scopes, organisation and accessible datasets.
Usage
logstreem whoami [--json]| Flag | Type | Description |
|---|---|---|
| --json | boolean | Machine-readable output. |
$
logstreem logoutRemove the stored credential locally. This does not revoke the token server-side — use logstreem tokens rm for that.
Usage
logstreem logout [--profile <name>] [--all]| Flag | Type | Description |
|---|---|---|
| --all | boolean | Remove every profile. |
Profiles
~/.logstreem/config.toml
default_profile = "prod"
[profiles.prod]
token = "lstrm_live_9f2c…"
dataset = "api-gateway-prod"
[profiles.staging]
token = "lstrm_live_4a81…"
dataset = "api-gateway-staging"In CI, use the environment
LOGSTREEM_TOKEN is read before the config file, so CI needs no login step. Set the secret and call the command.