Skip to content

GitHub Copilot cheatsheet

This page is a lookup reference for GitHub Copilot CLI. It was checked against the installed copilot binary v0.0.350 (commit 6bd4106) and GitHub’s official documentation on 2026-08-18.

The most important boundary: copilot -p is a local, terminal-native run that executes in your environment. GitHub’s Copilot cloud agent is a separate GitHub.com/IDE surface that works on a branch and raises or updates a pull request. IDE Copilot Chat and autocomplete are separate again. The tables below label documented features that are newer than the locally installed binary.

Command drill

15 verified GitHub Copilot commands. Read the task, type the command, press Enter. Every answer is on this page's tables - this drill only asks what the verified data already states.

Answer key - all 15 commands
  1. Print the installed CLI version. copilot --version
  2. Download and install the latest CLI version. copilot update
  3. Authenticate inside an interactive session with the GitHub OAuth flow. /login
  4. Start an interactive CLI session in the current directory. copilot
  5. Resume the most recent session. copilot --continue
  6. Open the session picker, or use `--resume=<session-id>` for a specific session. copilot --resume
  7. Open the interactive diff view for changes. /diff
  8. Display session usage metrics and statistics. /usage
  9. Show interactive commands; `?` opens tabbed help and `/` opens the slash-command picker. /help
  10. Analyze the repository and create or improve `.github/copilot-instructions.md`. copilot init
  11. Install a skill non-interactively for the user account. copilot plugins install --skill ./skill/SKILL.md
  12. Show loaded instructions, MCP servers, skills, agents, hooks, plugins, and language servers. /env
  13. Open the interactive form to add a local stdio or remote MCP server. /mcp add
  14. List configured MCP servers and status without opening a session. copilot mcp list --json
  15. Enable remote access to a CLI session from GitHub.com or GitHub Mobile. copilot --remote