From signing in and repositories to issues and pull requests, reviews and merges, Actions runs and logs, releases, search, --json and --jq, and gh api. Over 20 lessons you get to where you can do your GitHub work from the terminal and automate it with --json and gh api. Output was produced with gh 2.105.0 against a public repository, and you can total up the JSON with Python right in your browser.
about 2 hours in total (estimate)
The 20 lessons are split into 5 chapters. We recommend going in order from chapter 1,
but feel free to dip into whatever catches your interest.
Note: gh doesn't run inside the browser, so try the commands in your own terminal. The content matches gh 2.105.0 (November 2026). Commands and flags can change between versions, so check gh <command> --help on your own machine. Try anything that writes (creating or merging PRs and so on) in a practice repository of your own. The Python examples run right in your browser.
Take this chapter's review quiz ›
Install gh, log in, get a handle on scopes and tokens, and learn to clone, view, and create repositories. By the end you'll use Python in your browser to compare gh's JSON field names with the REST API's.
Take this chapter's review quiz ›
Learn to list, create, and label issues, then open a PR, review it, check its CI, and merge it, all from the terminal. At the end, you'll rewrite a label count made with gh's --jq in Python so that it matches right down to the order.
Take this chapter's review quiz ›
Learn to list workflow runs, read the failed jobs and logs, and rerun them, all from the terminal. You'll also cover releases and gists, and finish by tallying time to merge in Python.
Take this chapter's review quiz ›
Learn to pick fields with --json, shape them with --jq and --template, and search all of GitHub with gh search. At the end, you'll build a CI health-check table from a list of Actions runs.
Take this chapter's review quiz ›
Call REST and GraphQL directly with gh api, read the rate limit, and fit gh to your own work with aliases, extensions, config, and exit codes. To wrap up the course, you'll build a morning check report from PR, CI, and issue output.
Once you finish all 20 lessons, go deeper into git itself in Git & GitHub for Beginners, start writing workflows in GitHub Actions Fundamentals, or learn a git UI for the terminal in Getting Started with lazygit. Membership unlocks every course.