getstream token
Scope: app
Mints a JWT for the given user, so you can act as that user during
development. Without --ttl the token never expires, so prefer setting a
shorter one.
This command doesn't replace setting up proper authentication in your app.
Like every app-scoped command, token acts on the current project's
app unless --app-id or the STREAM_API_KEY and STREAM_API_SECRET
environment variables override it.
getstream token <user_id> [flags]Examples
getstream token alice
getstream token alice --ttl 30s
getstream token alice --ttl 2h
getstream token alice --ttl 1dFlags
| Flag | Description |
|---|---|
--app-id <int> |
id of the app to act on; defaults to the project's app |
--ttl <string> |
token lifetime (e.g. 30s, 5m, 2h, 1d); no expiration if omitted |
Global flags
| Flag | Description |
|---|---|
--verbose |
print API requests and full error details |