# gemini-cli

<span class="s1">來源: [https://github.com/google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli)  
參考: [https://www.darrelltw.com/google-gemini-cli](https://www.darrelltw.com/google-gemini-cli/)</span>

```p1
npm install -g @google/gemini-cli@latest
```

[![image-1750932966244.png](https://bookstack.treemanou.com/uploads/images/gallery/2025-06/scaled-1680-/T0YcXze6kyTFGa2O-image-1750932966244.png)](https://bookstack.treemanou.com/uploads/images/gallery/2025-06/T0YcXze6kyTFGa2O-image-1750932966244.png)

[![image-1750932999983.png](https://bookstack.treemanou.com/uploads/images/gallery/2025-06/scaled-1680-/8SKJPfMl6Mc7G0qV-image-1750932999983.png)](https://bookstack.treemanou.com/uploads/images/gallery/2025-06/8SKJPfMl6Mc7G0qV-image-1750932999983.png)

[![image-1750933039711.png](https://bookstack.treemanou.com/uploads/images/gallery/2025-06/scaled-1680-/ni8OWvw5naDJuH76-image-1750933039711.png)](https://bookstack.treemanou.com/uploads/images/gallery/2025-06/ni8OWvw5naDJuH76-image-1750933039711.png)

```shell
export GEMINI_API_KEY="AIzaSyDqmK6yd9rbj40LXXXXX" >> ~/.zshrc
source  ~/.zshrc
```

輸入 gemini 開始