11---
2- title : Install Gemini CLI on macOS and Arm Linux
2+ title : Gemini CLI
33
44author : Jason Andrews
55minutes_to_complete : 15
@@ -158,7 +158,7 @@ Before installing Gemini CLI, install prerequisite packages and Node.js.
158158
159159Install the required packages on Ubuntu/Debian systems:
160160
161- ``` bash { target="ubuntu:latest" }
161+ ``` bash
162162sudo apt update && sudo apt install -y curl
163163```
164164
@@ -170,19 +170,13 @@ Gemini CLI requires Node.js version 20 or higher. The easiest way to install Nod
170170
171171Download and run the Node.js 20.x setup script:
172172
173- ``` bash { target="ubuntu:latest" }
173+ ``` bash
174174curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
175175```
176176
177- Install Node.js:
178-
179- ``` bash { target="ubuntu:latest" }
180- sudo apt install -y nodejs
181- ```
182-
183177Verify Node.js is installed correctly:
184178
185- ``` bash { target="ubuntu:latest" }
179+ ``` bash
186180node --version
187181```
188182
@@ -194,7 +188,7 @@ v20.19.4
194188
195189Verify npm is available:
196190
197- ``` bash { target="ubuntu:latest" }
191+ ``` bash
198192npm --version
199193```
200194
@@ -210,7 +204,7 @@ With Node.js installed, install Gemini CLI globally using npm.
210204
211205Install Gemini CLI globally:
212206
213- ``` bash { target="ubuntu:latest" }
207+ ``` bash
214208sudo npm install -g @google/gemini-cli
215209```
216210
@@ -222,7 +216,7 @@ You now have Gemini CLI installed on your Arm Linux system.
222216
223217Confirm the CLI is available by checking the version:
224218
225- ``` bash { target="ubuntu:latest" }
219+ ``` bash
226220gemini --version
227221```
228222
@@ -236,7 +230,7 @@ The output shows the version:
236230
237231To print the available commands and options, use the ` --help ` flag:
238232
239- ``` bash { target="ubuntu:latest" }
233+ ``` bash
240234gemini --help
241235```
242236
@@ -315,13 +309,13 @@ Verify that Gemini is loading your context file by starting a chat session and a
315309
316310Start Gemini CLI:
317311
318- ``` bash
312+ ``` console
319313gemini
320314```
321315
322316Ask a question that should trigger context-aware responses:
323317
324- ```
318+ ``` output
325319How do I install gcloud?
326320```
327321
@@ -339,7 +333,7 @@ First, ensure Docker is installed and running on your system. Install Docker by
339333
340334Pull the Arm MCP server Docker image:
341335
342- ``` bash
336+ ``` console
343337docker pull armlimited/arm-mcp:latest
344338```
345339
0 commit comments