這是開發者常用的AI編程助手工具。

安裝步驟

  1. 安裝依賴
1
2
sudo apt update
sudo apt install curl git
  1. 安裝 Node.js(Gemini CLI需要)
1
2
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt install -y nodejs
  1. 安裝 Gemini CLI
1
npm install -g @google/gemini-cli
  1. 配置API密鑰或使用Google登入
1
2
gemini config
# 然後輸入你的 Google AI Studio API 密鑰

獲取API密鑰:訪問 Google AI Studio 免費申請 (自行申請)

本篇使用Google登入

授權成功