Skip to main content

GitHub Copilot CLI first steps

Take a guided, terminal-first tour of GitHub Copilot CLI by building and shipping a Space Quiz.

Take a beginner-friendly, hands-on tour of GitHub Copilot CLI. You will build a colorful Space Quiz from an empty folder and learn the terminal-first loop: build and review diffs before Git writes anything, run sessions side by side, plan before you edit, then create and merge the pull request without leaving your shell.

The workshop takes approximately 60 to 90 minutes. Your project uses a single HTML file with no runtime dependencies, so you can focus on learning the CLI and its agentic workflows.

Lessons

LessonTopicWhat you will do
0. Prerequisites and setupSetupVerify prerequisites, install Copilot CLI, sign in, and choose a model
1. Build the quizBuildBuild the quiz from the terminal and make one focused change
2. Capture project instructionsInstructionsGenerate and tailor agent instructions with /init
3. Publish the projectPublishInitialize, commit, and publish by prompt or by hand
4. Work on issues in parallelImplementCreate a backlog, add an issue to chat, review with /diff, and start a second session in a worktree
5. Plan before you editPlanUse /plan to agree on an approach for the second issue
6. Know what the agent can seeContextInspect and reset context with /context and /clear
7. Resume and go remoteResumeLeave and return to sessions with /resume, and optionally follow a local session from another device with /remote
8. Create, review, and mergeReviewCreate and merge a pull request with /pr create and /pr agentmerge
9. Delegate workDelegateHand a new feature to /delegate and follow a cloud session
10. Review and next stepsReviewRecap the workflow and continue learning