In short.
Using GitHub Copilot CLI is GitHub's practical guide for developers working with its terminal AI assistant, but granting file access and command permissions can have lasting consequences. It covers starting sessions, supplying context, planning changes, customizing agents, connecting tools and managing longer conversations. Its strongest contribution is explaining operational choices, including persistent approvals and the distinction between local tool sandboxing and a whole cloud session. Installation requirements, prices, coding reliability and security effectiveness are not established.
Researched and written by an AI model and checked by a second AI model. How it works
The report covers the complete selected documentation page at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-cli/use-copilot-cli/overview], including its trust, persistent approval, broad permission and sandboxing notices. Linked installation, reference, customization and automation pages are excluded. No CLI commands, agents, integrations, scheduled tasks or sandboxes were run. Runtime behavior, output quality, security effectiveness, prices and licensing remain unverified where the page supplies no evidence.
The overview
identity
This GitHub Docs usage guide explains how to operate GitHub Copilot CLI from a terminal. The resource is the documentation page titled Using GitHub Copilot CLI, available at [https://docs.github.com/api/article/body?pathname=/en/copilot/how-tos/copilot-cli/use-copilot-cli/overview].
Its scope spans interactive use and an overview of customization and automation. Separate installation, reference and feature guides are linked, but their contents are outside this report.
assessment
The guide is useful as an operating reference once Copilot CLI is installed. It provides concrete commands and explains decisions that affect everyday use, especially directory trust, reusable tool approvals and session recovery.
Beginners receive a clear launch sequence, while experienced developers get entry points for agents, MCP servers, hooks and configuration. It does not provide enough installation, commercial or performance evidence to support an end-to-end adoption decision by itself.
users
The documented workflows suit developers who want to ask questions about code, request bug fixes or features, and delegate tasks from the terminal. Readers need to understand folders, file paths and the consequences of shell commands.
Teams with shared coding conventions may find the repository instructions and custom agent sections particularly relevant. Beginners unfamiliar with terminal setup will need additional guidance from the linked installation material.
capabilities
The page documents conversational coding requests, plan mode, file references, voice input and attachments. Supported attachment formats include JPEG, PNG, GIF, WEBP, PDF, HEIC and HEIF, subject to using a model that supports image input.
It describes recurring prompts through /every, delayed prompts through /after, session resumption and bringing a Copilot cloud agent session into the local environment. Customization includes repository instructions, skills, hooks and agents for exploration, command execution, general tasks, review, research and constructive criticism.
Operational controls include MCP integrations, context and usage displays, conversation compression, settings, thinking visibility and local or cloud sandboxing. The page also introduces more autonomous workflows through links to separate guides.
Using it
requirements
Copilot CLI must already be installed. The startup instructions require choosing a working folder, deciding whether to trust its files and authenticating with GitHub through /login when prompted.
Supported operating systems, minimum runtime versions, hardware requirements and account entitlements for CLI access are not specified. Image and PDF attachments require a compatible model; the page says the attachment feature is available on all Copilot plans and enabled by default.
mechanism
Users submit natural-language requests, and Copilot can use tools to inspect files, make changes and execute commands. An @ reference adds a file's contents to the prompt. Repository instruction files are automatically included, including .github/copilot-instructions.md, matching files under .github/instructions and agent files such as AGENTS.md.
The model can delegate work to specialized subagents in separate contexts. User-defined agent profiles can specify expertise, tools and response instructions at user, repository or organization/enterprise scope.
MCP servers connect the assistant to additional capabilities; the GitHub MCP server is configured by default. Input beginning with ! runs a shell command directly without a model call. Assisted permissions uses a language model to assess eligible permission requests while retaining existing permissions and enterprise rules.
setup
After installation, navigate to the code folder and enter copilot. Choose whether directory trust should last for the current session or future sessions, authenticate if prompted, then enter a request and review tool permission prompts. Shift+Tab cycles into and out of plan mode before code is written.
For additional locations, /add-dir grants directory access and /cwd or /cd changes the working directory. Remote MCP configuration can begin with copilot mcp add --transport http SERVER-NAME URL or the interactive /mcp add command. Server details default to ~/.copilot/mcp-config.json; COPILOT_HOME can change that location.
Use /settings for configuration, ? for interactive help and copilot help for terminal help. Detailed installation commands and MCP authentication requirements are not supplied on this page.
example
A documented starting request is Explain @config/ci/ci-required-checks.yml. The @ reference supplies the file's contents as context. Another example, Fix the bug in @src/app.js, requests a code change and may lead to tool approval prompts. Substitute a relevant path from your own project.
For a recurring task, the page gives /every 1h Run frontend tests and report any failures. It also documents copilot --continue to reopen the most recently closed local session. These are usage examples; no successful fix, test result or scheduling outcome is demonstrated.
Assessment & evidence
limitations
Trusting a folder permits Copilot to attempt reading, modifying and executing files within it. Some approvals persist across sessions. The guide specifically warns that saving approval for rm could permit deletion within the current directory and its subdirectories without another prompt.
Assisted permissions relies on model judgments for eligible requests. The broader --allow-all and --yolo modes can permit destructive commands without individual approval, although deny rules and enterprise restrictions still apply. The guide limits its recommendation for these modes to sandboxed or isolated environments.
Local sandboxing restricts tools and commands invoked by Copilot; it does not sandbox the CLI process itself. A cloud sandbox runs the entire session. Coding accuracy, sandbox enforcement and resistance to unsafe instructions have not been assessed.
reasoning
The guide's practical value comes from explaining how project context, permissions and session state interact. For example, @ references include file contents, automatic instruction files influence prompts, and saved approvals affect later sessions.
These features suggest a useful workflow: supply relevant context, agree on a plan and keep access scoped to the task. That is an inference from the documented controls, not evidence of better coding results. The page provides no quantified quality, speed or productivity gains.
alternatives
Within Copilot CLI, the guide offers several approaches: direct conversation, planning before changes, specialized agents and more autonomous task delegation. For isolation, it describes local restrictions on invoked tools and a cloud sandbox for the whole session.
The page supplies no comparative evidence about competing terminal assistants, editor assistants or other learning resources. Relative price, reliability and ease of use are unknown.
evidence
The evidence consists of the complete selected GitHub Docs page, supplied as selected-page.txt. Its source revision is sha256:bf30ae878cf82809764c68949640e3be62d8c43c9d56dbf6e3411c82a1d95747.
This is first-party documentation of intended behavior. It contains command examples and explanatory notices, but no independent evaluation, benchmark data or demonstrated task outcomes. Linked pages were excluded, and no commands or integrations were executed.
Access & freshness
costs
Subscription prices, included credit allowances, model rates and monetary examples are unknown from this page. The /usage command reports GitHub AI Credits consumed, session duration, lines edited and token usage by model, but the guide provides no conversion from those figures to a bill.
The statement that attachments are available on all Copilot plans does not establish free CLI access or unlimited usage. Cloud sandbox charges and any external MCP service costs are also not established.
rights
The selected page does not establish licensing or redistribution rights for the documentation or CLI software. It also does not establish ownership or licensing terms for generated code.
Terms governing submitted source files, data retention, training use and processing location are not supplied. These remain unknown and require separate contractual or policy documentation.
freshness
The supplied capture timestamp is 2026-11-23T03:49:11.511Z. The page does not identify its publication date, last update date or an applicable CLI version.
Feature release dates, compatibility with particular installed versions and changes after capture are unknown. Check the installed CLI's help and current documentation before relying on a specific command or permission behavior.
actions
Confirm installation requirements, account access, pricing and code-handling terms before adoption. Begin in a project folder you understand, use session-only trust while learning, and try a file-explanation request before authorizing changes.
Use plan mode to clarify intended edits, inspect permission scope before saving approvals and choose sandboxing appropriate to the task. Check /usage for consumption, /context for context use and /compact when you want to compress conversation history.
Before relying on automation, agents or integrations, consult the corresponding linked guide and verify the behavior in your environment. Their reliability and resulting work remain unassessed here.
