Just like Terminals are an essential part of Linux, AI tools are also making their way into the terminal. Recently, Google released an open-source project called Gemini-CLI: a command-line tool that allows you to interact with their AI models directly from your terminal.
This article covers how to install Gemini-CLI and some example commands you can try.
Gemini-CLI is an open-source terminal tool by Google that lets you interact with Gemini AI models directly from your terminal. With a free license, you get access to Gemini 2.5 Pro and its powerful 1 million token context window. Connect it with a Google AI Studio API key to unlock higher limits.
Make sure you have Node.js version 18 or higher installed. For example, on Linux systems:
# Download and install nvm:curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
# in lieu of restarting the shell\."$HOME/.nvm/nvm.sh"# Download and install Node.js:nvm install 22# Verify the Node.js version:node -v # Should print "v22.17.0".nvm current # Should print "v22.17.0".# Verify npm version:npm -v # Should print "10.9.2".