Configuration#
Where things are kept#
Settings (the site, and per project the tracked field and its units) are in
config.json in your user config directory. jtt config path
prints where:
System |
Directory |
|---|---|
Linux |
|
macOS |
|
Windows |
|
The API token goes to the system keyring: Windows Credential Manager, the macOS Keychain,
or the Secret Service (GNOME Keyring, KWallet) on Linux. Where no keyring is usable, as on
headless servers, WSL or in containers, it goes to credentials.json next to the settings,
created readable by you only (0600, in a 0700 directory). It is never written to config.json,
and never printed.
jtt whoami shows which one holds your token.
Changing settings#
jtt init sets projects up interactively. The jtt config commands
change one setting at a time:
Command |
Changes |
|---|---|
nothing: prints every setting |
|
the project used when |
|
a project’s field, unit or display unit |
|
forgets a project |
|
the working day and week for time conversions |
Environment variables#
JTT_CONFIG_DIRMoves the settings directory (and
credentials.json, when the token is kept in a file).JTT_CREDENTIAL_BACKENDkeyringorfile: forces where the token is stored.JTT_API_TOKENA token to use instead of the stored one, for CI. It is never stored.