Skip to main content

Files

Two files live in the resolved config directory. config.toml has these sections:

Resolution order

Three values are resolved by precedence, highest first.
  1. JOYSTREAM_CONFIG_DIR, if set
  2. ~/.joystream/<stack> — a per-checkout profile, used only once you have logged into that instance, meaning its session.json exists
  3. ~/.joystream — the shared default
The per-checkout profile is how running jstm inside a particular checkout picks up that checkout’s login without disturbing your global session.

Session refresh

The CLI refreshes your token proactively when it is within 60 seconds of expiring. If the refresh fails, it clears the session and tells you to run jstm login again. A 401 from the backend produces the same message. A 403 does not — that means you’re signed in but not permitted, which signing in again won’t fix.

Environment variables

The CLI also honors the usual terminal conventions: NO_COLOR, COLUMNS, and TERM.

Multiple instances

Because the config directory is resolvable per environment, you can point the CLI at different backends without logging in and out:

In CI

Set both the URL and a token, and skip interactive login entirely: