Skip to content

Commit 6c61009

Browse files
authored
Copilot CLI: Add hooks section to CLI overview (#61923)
1 parent d66293c commit 6c61009

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

content/copilot/how-tos/copilot-cli/customize-copilot/use-hooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ docsTeamMetrics:
1818

1919
## Prerequisite
2020

21-
**For Windows only:** The examples in this article use PowerShell. If you're using Windows, you must have PowerShell 7.0 or later installed and in your PATH. You can check your PowerShell version by running `pwsh --version` in a terminal. To install PowerShell, run `winget install Microsoft.PowerShell` then restart your terminal.
21+
**Windows users only:** The example hooks in this article are designed to run on Windows, Linux, and macOS. For Windows, they use PowerShell and require you to have PowerShell 7.0 or later installed and in your PATH. You can check your PowerShell version by running `pwsh --version` in a terminal. To install PowerShell, run `winget install Microsoft.PowerShell` then restart your terminal.
2222

2323
## Creating a repository-level hook
2424

content/copilot/how-tos/copilot-cli/use-copilot-cli/overview.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ You can create skills to enhance the ability of {% data variables.product.prodna
239239
240240
For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/add-skills).
241241
242+
### Use hooks
243+
244+
You can use hooks to extend and customize the behavior of {% data variables.copilot.copilot_cli_short %}. Hooks allow you to run custom shell commands automatically at key points during a CLI session.
245+
246+
For more information, see [AUTOTITLE](/copilot/how-tos/copilot-cli/customize-copilot/use-hooks).
247+
242248
### Add an MCP server
243249
244250
{% data variables.copilot.copilot_cli_short %} comes with the {% data variables.product.github %} MCP server already configured. This MCP server allows you to interact with resources on {% data variables.product.prodname_dotcom_the_website %}—for example, allowing you to merge pull requests from the CLI.

0 commit comments

Comments
 (0)