Overview
Thetimeback credentials command manages local API credentials for the Timeback and MasteryTrack providers. Credentials are stored as JSON in ~/.timeback/credentials.json; the CLI creates the directory with mode 0700 and writes the file with mode 0600.
Commands
add
Add credentials interactively:
timeback. Choose one or more environments, then enter the client ID, client secret, and optional email for each environment. The email is used to look up your OneRoster profile. API and token URLs are resolved from the provider and environment.
For MasteryTrack, select its provider explicitly:
email
Add or update the email associated with your saved Timeback credentials:
list
List stored credentials:
remove
Remove stored credentials:
Credential Priority
The CLI looks for credentials in this order:- Environment variables
- Stored credentials
TIMEBACK_API_CLIENT_ID and TIMEBACK_API_CLIENT_SECRET. The legacy TIMEBACK_CLIENT_ID and TIMEBACK_CLIENT_SECRET aliases are also accepted. For MasteryTrack, use TIMEBACK_MASTERYTRACK_API_KEY and TIMEBACK_MASTERYTRACK_EMAIL; the legacy MASTERYTRACK_API_KEY and MASTERYTRACK_EMAIL names remain supported.
Next Steps
CLI: API
Use credentials to query APIs
CLI: Resources
Manage course configurations