Ever wish your terminal could help you debug, write code, or even run DevOps tasks, without switching tabs? Google’s new Gemini CLI might just do that.
Launched in June 2025, Gemini CLI is an open-source command-line AI tool designed to act like your AI teammate, helping you write, debug, and understand code right from the command line.
Gemini CLI is a smart AI assistant you can use directly in your terminal. It’s not just for chatting, it’s purpose-built for developers.
Whether you're reviewing code, fixing bugs, managing Git workflows, or generating docs, Gemini CLI helps you get it done faster. It uses a clever ReAct loop (Reason + Act) to make decisions. This means it doesn’t just give answers, it reasons, acts, and interacts with both your local system and remote model context servers (called MCPs) to perform tasks intelligently.
Before you begin, make sure you have Node.js v18 or higher installed on your system.
You can try it instantly using:
npx https://github.com/google-gemini/gemini-cli
No setup required.
Experience seamless collaboration and exceptional results.
If you plan to use it often, install it globally:
sudo npm install -g @google/gemini-cli
After installation, just type gemini in your terminal to launch it.
Select your desired theme and click Enter.
Once Gemini CLI starts, it’ll ask you to authenticate. You’ve got three options:
> export GEMINI_API_KEY=<your_gemini_api_key>
Gemini CLI is more than just an AI chatbot. Here are some of its coolest features:
Experience seamless collaboration and exceptional results.
Gemini CLI is a smart and flexible tool that helps with coding tasks. It works great for small personal projects or large teamwork, making it easier to write, fix, and manage code right from your terminal.
What makes it stand out?
And most importantly, it runs in the terminal, your favourite place to work.