Esc

CLI

The myskool CLI speaks JSON, with stable exit codes an agent can branch on.

JSON output#

Every command speaks JSON, with stable exit codes an agent can branch on. Prefer a native tool call? The MCP serverexposes the same surface to Claude Code, Cursor & Codex.

shell
# --json on every command → one JSON object to stdout
myskool posts list --group $GID --sort best-1w --json | jq '.data[].title'
 
# calendar: November's sessions, with local time and occurrence id
myskool events list --group $GID --from 2026-11-01 --to 2026-12-01 --json \
  | jq '.data[] | {id, occurrenceId, title, startLocal}'
 
# a weekly Q&A, Thursdays 7pm Lima time, 12 sessions
myskool events create --group $GID --title "Weekly Q&A" --start 2026-11-05T19:00 \
  --timezone America/Lima --location zoom --location-value https://zoom.us/j/123456789 \
  --repeat weekly --days thu --count 12
 
# move one session to Friday; drop the series from Dec 3 on
myskool events update $EVENT_ID --occurrence 1794528000 --scope occurrence --start 2026-11-13T19:00
myskool events delete $EVENT_ID --occurrence 1796342400 --scope following --yes
 
# stable exit codes: 0 ok · 2 usage · 3 auth · 4 scope · 5 not found · 6 rate-limited · 7 upstream · 8 billing

Exit codes#

CodeMeaning
0ok
1unexpected error
2usage or invalid argument (also HTTP 400)
3no key, invalid key or expired Skool session (401)
4the key lacks the scope, or the account is not a community admin (403)
5not found (404)
6rate limited or monthly quota used up (429)
7upstream failure: Skool, timeout or network
8no active subscription (402)

MySkool is not affiliated with Skool. Skool™ is a trademark of Skool, Inc.