D2: GitHub Copilot CLI
GH-300 GitHub Copilot exam practice questions · 12 flashcards
Question
What is GitHub Copilot CLI?
1 / 12
Tip: Space flips the card, ← / → navigate.
Show all 12 GitHub Copilot CLI practice questions and answers
- What is GitHub Copilot CLI?Terminal-native agent that understands your repo, edits files, runs commands, and works with GitHub.
- Benefits?Stay in terminal, automate scripts, explain/fix commands, agentic tasks without IDE.
- Installing Copilot CLI?npm install -g @github/copilot (Node.js 22+), or via package managers; then run copilot and authenticate.
- Authentication?Sign in with GitHub account (/login) or token with Copilot access.
- Interactive mode?Run copilot to start a session and chat/plan tasks.
- Programmatic mode?copilot -p "prompt" for one-shot use in scripts.
- Slash commands in CLI?/model, /mcp, /clear, /help, /session, /usage, /cwd, /agent, /delegate.
- Tool approval in CLI?Asks before running commands/editing; --allow-tool/--deny-tool flags.
- MCP in CLI?GitHub MCP server built in; add others with /mcp add.
- Managing files and scripts?Ask CLI to generate shell scripts, create/modify files, batch rename, etc.
- Old gh copilot extension?gh copilot suggest/explain — older command suggestion extension.
- Resuming sessions?--resume / --continue to pick up previous sessions.