Output and errors
Every command except usc skill prints JSON to stdout: exactly the value the matching Go library call returns. Lists print as JSON arrays.
JSON is indented in a terminal and single-line when piped or redirected. Force either with --pretty or --compact.
usc brightspace courses --compact | jq '.[].name'
Errors
Errors are JSON on stderr, and the command exits with status 1. When another command fixes the problem, action names it:
{"error":"brightspace: USC sign-in is required","action":"usc auth login"}
Commands
| Command | What it does |
|---|---|
usc auth login / status / logout |
Sign in, check, or sign out. Signing in |
usc brightspace ... |
Courses, content, grades, announcements, assignments, downloads. Brightspace |
usc webreg ... |
Terms, catalog, course bin, calendar, checkout. WebReg |
usc handshake ... |
Events and career fairs. Handshake |
usc libcal ... |
Leavey rooms, schedules, booking. Leavey Library |
usc classes TERM COURSE |
Public course sections. Schedule of Classes |
usc browser sync |
Copy the session into Chrome. Browser sync |
usc skill |
Print the agent skill as Markdown |
usc version |
Print the version and commit |