You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/copilot/concepts/agents/about-copilot-cli.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ For installation instructions, see [AUTOTITLE](/copilot/how-tos/set-up/install-c
39
39
***Programmatic mode**: You can also pass the CLI a single prompt directly on the command line. You do this by using the `-p` or `--prompt` command-line option. To allow {% data variables.product.prodname_copilot_short %} to modify and execute files you should also use one of the approval options (see [Allowing tools to be used without manual approval](#allowing-tools-to-be-used-without-manual-approval) later in this article). For example:
40
40
41
41
```bash copy
42
-
copilot -p "List my open PRs" --allow-all-tools
42
+
copilot -p "Show me this week's commits and summarize them" --allow-tool 'shell(git)'
43
43
```
44
44
45
45
Alternatively, you can use a script to output command-line options and pipe this to `copilot`. For example:
0 commit comments