Don't launch Copilot CLI from $HOME
copilot --version only proves PATH; first success is a session in a trusted repo.
Do not run copilot from your home directory. GitHub treats the launch folder as the trust root; the session may read, modify, and execute files under it. copilot --version is not first success. Open a wbmeet room and walk the trust prompt.
The query is GitHub Copilot CLI install first command trusted directory. This page follows docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/install-copilot-cli and docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/overview (2026-11-30). Channels: Copilot CLI install note. Same beat: Claude Code’s first command. Align in wbmeet; see create and join a room.
--version only proves PATH
A version string means the binary was found. Official use: cd into the code you will change, then type copilot. It asks whether you trust that folder. No ends the session, so the first command never lands.
Four steps to a command that works
- 1
Install from an official channel
All platforms:
npm install -g @github/copilot. Homebrew:brew install --cask copilot-cli. Script:curl -fsSL https://gh.io/copilot-install | bash. WinGet:winget install GitHub.Copilot. Open a new terminal. - 2
Enter a repo, not $HOME
cdinto a project you own and are willing to let an agent read and write. Docs say you typically should not launch Copilot CLI from your home directory. - 3
Run copilot, answer the trust prompt
Type
copilot. Yes is this session; Yes, and remember this folder for future sessions persists; No (Esc) exits. If unsigned,/login. - 4
Give a finite prompt, or use -p
In interactive mode, one concrete task. Documented one-shot:
copilot -p "Show me this week's commits and summarize them" --allow-tool='shell(git)'. Tools that change files may still ask approval.
# docs.github.com · 2026-11-30
npm install -g @github/copilot
cd /path/to/your/project
copilot
# trust prompt: Yes (this session) | remember folder | No
# if prompted: /login
# or one-shot:
# copilot -p "Show me this week's commits and summarize them" --allow-tool='shell(git)'Which call counts
| Action | Result | Use when |
|---|---|---|
copilot --version | Binary on PATH | Not proof it works |
copilot from home | Trust root too wide | Docs advise against it |
copilot in a repo + Yes | Session starts; then /login | Interactive first command |
copilot -p + --allow-tool | Runs, then exits | Documented one-shot |
FAQ
Why does an org seat still fail after install?
If Copilot comes from an organization, the Copilot CLI policy must be enabled. If an admin disables it, a personal seat is not enough.
What is the risk of Yes, and remember?
Later launches from that folder skip the prompt. Use it only for projects that will stay safe. Permission scoping is heuristic; GitHub does not guarantee every file outside trusted directories is protected.
Is this the editor Copilot?
No. This is the standalone copilot command. Editor pitfalls: first-hour VS Code mistake.
To walk the terminal together, open a room on wbmeet—create and join.