Getting Started with GitHub Copilot CLI: Interactive and Non-Interactive Modes
·2026.05.01 01:09
Key point
GitHub Copilot CLI offers both interactive and non-interactive modes.
Details
GitHub Copilot CLI offers two ways to use it.
- interactive mode: The default mode, started with
copilot. You can exchange questions and answers and keep working in the same session, checking folder trust before moving on to project analysis and execution. - non-interactive mode: A one-shot mode run with
copilot -p. It's suited for cases like summarizing a repository, generating code snippets, or automation workflows, where you want a quick single answer and to return to the terminal.
Previous sessions can be resumed with /resume in interactive mode, or copilot --resume in non-interactive mode. Ultimately, interactive mode is designed for exploratory, iterative work, while non-interactive mode is designed for tasks where speed and simplicity matter.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.