
AI has finally started tricuting in the Linux command line. Thanks to Olama’s choice, this reality is no longer avoidable: it’s here, and it is not going anywhere. You don’t have to say this Pass To use AI in your Linux terminal, but you Be able to doFor those who benefit from AI and often use Linux Command Line Interface (CLI), the combination of both can increase a very powerful productivity.
Yes, you can get the power of Gemini AI directly in your Linux terminal.
Also: My two favorite AI apps on Linux – and how I use them to do more
Gemini CLI is a locally installed tool that can be used for many types of tasks, such as content generation, problem solving, deep research and even task management. Although the original focus of Gemini CLI was on developers, it can also be used by the last users who want to reach AI without using a web browser or third-party GUI.
The problem with Gemini CLI is that it is a bit difficult to install. Luckily, I am here to help you.
How to install Gemini CLI on Ubuntu
what you’ll need: Only one thing you need, Ubuntu is an example of Linux (or a distribution based on Ubuntu), a user with Sudo privileges, and a working Google account. Make sure you have already signed your Google account with your default web browser before running Mithun CLI for the first time.
Next, we are going to install node.js (because Gemini Cli Node.JS Package Manager is installed with NPM). To install node.js, release commands:
Show more
Sudo Apt -Get Install Nodes -Y
Sudo Apt -Get Install NPM -Y
I have come in many pieces of documentation that instructs how to establish Mithun CLI with NPM, but winds with many of them Gemini command not found. The only definite way to properly install Gemini CLI is with the command:
Show more
Sudo NPM Install -G @Google/Gemini -Cli
When it is finished, you are ready to run Gemini.
Note: If you get an error while trying to run Gemini, you may have to install the latest version. Node.jsWhich can be done with the following orders:
Curl -FSSL -O nodesource_setup.sh
Sudo -E Bash Nodesource_Setup.sh
Sudo Apt -Get Install Nodes -Y
After running the above, you have to re -establish the NPM:
Sudo Apt -Get Install NPM -Y
Gemini first run steps
1. Run Gemini
The first thing you should do is to run Gemini with the command:
Gemini
2. Select your theme
Gemini will inspire you to choose a theme. Since this is a curse-based application, use your arrow keys to select your intended theme, then hit the entry on your keyboard.
Also: How do I feed my files to a local AI for better, more relevant reactions
You can choose from one of the themes involved.
Jack Walons/ZDDNet
3. Select your certification method
You read that right: you have to log in to your Google account. There are other ways to certify (Gemini API key or vertex AI), but the easiest way to use your Google account. Ensure that “login with Google” is selected, then hit ENTER on your keyboard.
Too: Here is how I finally broke a difficult Linux problem with this AI Terminal App
I would recommend using the Google authentication method, as it is the easiest.
Jack Walons/ZDDNet
4. Certify
When you hit ENTER on your keyboard, your default web browser will open, where you can choose the Google account you want to use. Once you are certified, the terminal window will turn into a Gemini Prompt, where you can type your first query.
Too: First 5 Linux Command should learn every new user
Now you are ready to run your first query.
Jack Walons/ZDDNet
And this is how you install Gemini CLI tool on Linux. Enjoy the power of AI in your terminal.
Also: How to run Deepsek AI locally to protect your privacy – 2 easy ways
Get top stories of morning with us in your inbox every day Tech Today Newsletter.

