-
Notifications
You must be signed in to change notification settings - Fork 0
Installation
gh teacher and gh student are gh CLI extensions written in Go. Until they're published to their own repos, install them from a local checkout of this repo.
- Go (any recent version)
- GitHub CLI (
gh)
You do not need to run gh auth login first — the gh teacher login / gh student login commands below handle GitHub authentication with the right scopes.
git clone https://github.com/foundation50/classroom50
cd classroom50
# teacher extension
(cd cli/gh-teacher && go build . && gh extension install .)
# student extension
(cd cli/gh-student && go build . && gh extension install .)gh teacher and gh student are now available in your shell. Verify with:
gh teacher --help
gh student --helpgh extension install . only needs to run once per extension. After pulling new commits, just rebuild:
(cd cli/gh-teacher && go build .)
(cd cli/gh-student && go build .)Each CLI has a login command that runs gh auth login with the extra OAuth scopes the classroom workflows require.
gh teacher login # requests admin:org (needed for org invites)
gh student login # requests read:org and repo (needed to accept assignments)If you skip this step and run another command first, the CLI detects the missing token and runs the login flow for you. The explicit step is just for predictability on a fresh setup.
gh teacher logout / gh student logout mirror gh auth logout.
- Teachers: continue to the Teacher Guide.
- Students: continue to the Student Guide.