Files
config.toml has these sections:
Resolution order
Three values are resolved by precedence, highest first.- Config directory
- API URL
- Auth token
JOYSTREAM_CONFIG_DIR, if set~/.joystream/<stack>— a per-checkout profile, used only once you have logged into that instance, meaning itssession.jsonexists~/.joystream— the shared default
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 runjstm 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.