1.在[命令提示字元]執行以下指令以安裝Node.js
winget install OpenJS.NodeJS.LTS
2.在[命令提示字元]執行以下指令以安裝Git
winget install --id Git.Git -e --source winget
3.在[命令提示字元]執行GitHub Copilot CLI
npm install -g @github/copilot@latest
4.(選用)在[命令提示字元]執行
setx COPILOT_ALLOW_ALL true
(會直接信任GitHub Copilot CLI,允許任何工具執行並不提出確認要求,有安全性問題,所以需評估便利與安全性的取捨。)
5.在[命令提示字元]執行
copilot
(會要求登入)