开始前先做这一步:先到 Key 管理 创建 Gemini Key。文档里所有 你的Gemini_API_KEY 都必须替换成你自己的真实 Key,否则无法使用。
复制前先确认
Node.js
需要先安装
Node.js 20+。若未安装,请前往 nodejs.org/zh-cn/download 下载。执行位置
把脚本粘贴到
PowerShell / Windows Terminal / VSCode 终端 里执行。复制脚本
powershell -NoProfile -ExecutionPolicy Bypass -Command "iwr -useb https://code.jimuxyz.com/env_deploy/gemini-install.ps1 | iex"
powershell -NoProfile -ExecutionPolicy Bypass -Command "npm install -g @google/gemini-cli"
powershell -NoProfile -ExecutionPolicy Bypass -Command "$env:JIMUXYZ_GEMINI_KEY='你的Gemini_API_KEY'; iwr -useb https://code.jimuxyz.com/env_deploy/gemini-deploy.ps1 | iex"