Skip to content

Commit 9f29782

Browse files
authored
Change initial example to use a specific allowed tool (#58160)
1 parent 4025f0d commit 9f29782

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/copilot/concepts/agents/about-copilot-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ For installation instructions, see [AUTOTITLE](/copilot/how-tos/set-up/install-c
3939
* **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:
4040

4141
```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)'
4343
```
4444

4545
Alternatively, you can use a script to output command-line options and pipe this to `copilot`. For example:

0 commit comments

Comments
 (0)