Logstreem
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 login

Authorise the CLI. Without --token this opens a browser.

Usage
logstreem login [--token <token>] [--profile <name>]
FlagTypeDescription
--token <token>stringSkip the browser and store this token. For SSH sessions and CI.
--profile <name>stringStore under a named profile instead of default.
$logstreem whoami

Show the active profile, token scopes, organisation and accessible datasets.

Usage
logstreem whoami [--json]
FlagTypeDescription
--jsonbooleanMachine-readable output.
$logstreem logout

Remove the stored credential locally. This does not revoke the token server-side — use logstreem tokens rm for that.

Usage
logstreem logout [--profile <name>] [--all]
FlagTypeDescription
--allbooleanRemove 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.