File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ # copilot
2+
3+ > Interact with GitHub Copilot.
4+ > More information: < https://docs.github.com/en/copilot/concepts/agents/about-copilot-cli > .
5+
6+ - Start interactive mode:
7+
8+ ` copilot `
9+
10+ - Allow all file editing:
11+
12+ ` copilot --allow-tool write `
13+
14+ - Resume the most recent session:
15+
16+ ` copilot --continue `
17+
18+ - Resume a previous session using session picker:
19+
20+ ` copilot --resume `
21+
22+ - Use a specific model:
23+
24+ ` copilot --model "{{gpt-5}}" `
25+
26+ - Allow all Git commands except ` git push ` :
27+
28+ ` copilot --allow-tool 'shell(git:*)' --deny-tool 'shell(git push)' `
29+
30+ - Execute a prompt directly without interactive mode, while allowing ` copilot ` to run any command:
31+
32+ ` copilot {{[-p|--prompt]}} "{{Fix the bug in main.js}}" --allow-all-tools `
Original file line number Diff line number Diff line change 11# gh copilot
22
33> Interact with GitHub Copilot.
4+ > Note: Deprecated in favor of ` copilot ` .
45> More information: < https://github.com/github/gh-copilot#usage > .
56
67- Suggest a command, given a description:
You can’t perform that action at this time.
0 commit comments