一、Copilot CLI 安装

1、命令安装winget(推荐):

winget install GitHub.Copilot.Prerelease

2、命令安装nmp(node.js v18版本以上):

npm install -g @github/copilot@prerelease

3、安装包安装:

Powershell 版本检查及更新:

依赖 PowerShell [7.x.x]

版本检查:

$PSVersionTable.PSVersion

Powershell更新地址:https://github.com/PowerShell/PowerShell/releases/download/v7.6.0/PowerShell-7.6.0-win-x64.msi 

copilot下载地址:https://github.com/github/copilot-cli/releases/download/v1.0.8-0/copilot-win32-x64.zip 

  • 将解压的 copilot.exe 文件放到到一个固定位置, 例如:C:\Users\user123456\copilot-cli\
  • 配置环境变量:

        a. 在"系统变量"或"用户变量"中找到 Path,双击编辑

        b. 点击"新建",添加你的解压路径(例如C:\\Users\\user123456\\copilot-cli)

        c. 确定保存

二、验证安装成功

运行:

copilot --version

Logo

欢迎加入DeepSeek 技术社区。在这里,你可以找到志同道合的朋友,共同探索AI技术的奥秘。

更多推荐