GitHub Copilot CLI 的终端集成与扩展配置

GitHub Copilot CLI 让开发者在终端中直接提问、编写和调试代码并与 GitHub 交互。文档围绕使用方式、最佳实践、命令参考以及技能、自定义指令、模型、LSP 与 MCP 服务器等配置项展开,并涉及会话数据与工具权限管理。

## GitHub 副驾驶 CLI 从终端直接使用副驾驶来回答问题,写入和调试代码,并与GitHub交互. [概览](<https://docs.github.com/en/copilot/concepts/copilot-surfaces/copilot-cli>)[快速启动](<https://docs.github.com/en/copilot/get-started/cli-quickstart>) ## 建议 ### [使用 GitHub 副驾驶 CLI](<https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/overview>) 从命令行学习如何使用 GitHub 副驾驶. ### [GitHub 副驾驶 CLI的最佳做法](<https://docs.github.com/en/copilot/how-tos/copilot-cli/cli-best-practices>) 学习如何从GitHub副驾驶CLI中获取最多. ### [GitHub 副驾驶 CLI 命令参考](<https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-command-reference>) 查找命令和键盘快捷键,帮助您有效使用Copilot CLI. ## 文章 ### [关于 GitHub 副驾驶会话数据](<https://docs.github.com/en/copilot/concepts/security-governance-and-network-settings/session-data>) 了解会话数据是什么,存储在何处,谁可以访问,如何管理. 配置副驾驶 CLI ### [添加 GitHub 副驾驶 CLI 的代理技能](<https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-skills>) 在完成特定任务时修改副驾驶的行为和能力. 配置副驾驶 CLI ### [为 GitHub 添加自定义指令 副驾驶 CLI](<https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-custom-instructions>) 给出更多关于如何理解您的项目以及如何构建,测试和验证其变化的Copilot上下文. 配置副驾驶 CLI ### [将LLM模型添加到GitHub 副驾驶CLI](<https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-llm-models>) 在副驾驶CLI中使用您喜欢的远程或本地模式. 配置副驾驶 CLI ### [添加LSP服务器用于GitHub 副驾驶CLI](<https://docs.github.com/en/copilot/how-tos/copilot-cli/set-up-copilot-cli/add-lsp-servers>) 您可以添加LSP服务器,以给副驾驶CLI精确代码智能,提高其导航定义,查找参考文献,以及重命名符号的能力. 配置副驾驶 CLI ### [添加MCP服务器用于GitHub 副驾驶CLI](<https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers>) 通过连接模型上下文协议(MCP)服务器来扩展副驾驶的能力,以提供额外的工具和上下文. 管理副驾驶 CLI ### [管理您的企业的副驾驶 CLI](<https://docs.github.com/en/copilot/how-tos/copilot-cli/administer-copilot-cli-for-your-enterprise>) 控制企业内部使用副驾驶CLI. 学习关于副驾驶CLI ### [代理技能](<https://docs.github.com/en/copilot/concepts/customizations/agent-skills>) 给副驾驶可重复的工作流程提供任务特定指令,脚本和资源. 与副驾驶 CLI 一起构建 ### [允许和拒绝使用工具](<https://docs.github.com/en/copilot/how-tos/copilot-cli/use-copilot-cli/allowing-tools>) 控制哪个工具的副驾驶CLI可以用来避免意外的改变. 显示1-9页:167

查看原始来源