Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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