Dataconomy
  • News
    • Artificial Intelligence
    • Cybersecurity
    • DeFi & Blockchain
    • Finance
    • Gaming
    • Startups
    • Tech
  • Industry
  • Research
  • Resources
    • Articles
    • Guides
    • Case Studies
    • Glossary
    • Whitepapers
  • Newsletter
  • + More
    • Conversations
    • Events
    • About
      • About
      • Contact
      • Imprint
      • Legal & Privacy
      • Partner With Us
Subscribe
No Result
View All Result
  • AI
  • Tech
  • Cybersecurity
  • Finance
  • DeFi & Blockchain
  • Startups
  • Gaming
Dataconomy
  • News
    • Artificial Intelligence
    • Cybersecurity
    • DeFi & Blockchain
    • Finance
    • Gaming
    • Startups
    • Tech
  • Industry
  • Research
  • Resources
    • Articles
    • Guides
    • Case Studies
    • Glossary
    • Whitepapers
  • Newsletter
  • + More
    • Conversations
    • Events
    • About
      • About
      • Contact
      • Imprint
      • Legal & Privacy
      • Partner With Us
Subscribe
No Result
View All Result
Dataconomy
No Result
View All Result

Gemini AI now runs directly in the command line

Gemini CLI brings Google’s AI to Linux terminals, offering code help, task management, and research tools.

byAytun Çelebi
July 2, 2025
in Artificial Intelligence, News

AI integration is expanding into the Linux command line, exemplified by tools like Ollama, making its presence in this environment increasingly common.

The Gemini CLI tool enables users to access Google’s Gemini AI directly within their Linux terminal. This locally installed application supports various functions, including content generation, problem-solving, detailed research, and task management. Although initially designed for developers, Gemini CLI also serves end-users who require AI access without relying on web browsers or third-party graphical user interfaces.

Installation of Gemini CLI on Ubuntu-based distributions requires specific prerequisites. Users need a running instance of Ubuntu Linux or a compatible distribution, a user account with sudo privileges, and an active Google account. Prior to the initial execution of Gemini CLI, it is necessary to be signed into the Google account via the default web browser.

Stay Ahead of the Curve!

Don't miss out on the latest insights, trends, and analysis in the world of data, technology, and startups. Subscribe to our newsletter and get exclusive content delivered straight to your inbox.

  1. The installation process for Gemini CLI involves several steps. First, users must open a terminal window.
  2. Next, Node.js is installed because Gemini CLI utilizes the Node.js package manager (npm).
  3. This is achieved by executing the command sudo apt-get install nodejs -y.
  4. Following Node.js, npm itself is installed using the command sudo apt-get install npm -y.
  5. Finally, Gemini CLI is installed with the command sudo npm install -g @google/gemini-cli.

This method is noted as the reliable way to ensure the gemini command is properly recognized, addressing issues where other installation instructions might result in the command not being found.


Gemini to replace Google Assistant on Android soon


Should an error occur during the initial attempt to run Gemini, necessitating an updated version of Node.js, a specific set of commands can be used.

  • First, curl -fsSL https://deb.nodesource.com/setup_23.x -o nodesource_setup.sh is executed to download the setup script.
  • This is followed by sudo -E bash nodesource_setup.sh to run the script. Node.js is then reinstalled with sudo apt-get install nodejs -y.
  • After these steps, npm must be reinstalled using sudo apt-get install npm -y.

Upon successful installation, the first-run configuration of Gemini involves a series of prompts. The user initiates the process by typing gemini in the terminal. Gemini then prompts the user to select a theme, which is navigated using arrow keys in the curses-based application. Subsequently, the user selects an authentication method. While alternative authentication options such as a Gemini API Key or Vertex AI exist, logging in with a Google account is presented as the most straightforward method. After selecting “Login with Google,” pressing Enter opens the default web browser. The user then selects the desired Google account for authentication. Once authenticated, the terminal window transitions to a Gemini prompt, allowing the user to input their first query.


Featured image credit

Tags: FeaturedgeminiGoogleterminal

Related Posts

Reddit sues Perplexity over alleged large-scale data scraping

Reddit sues Perplexity over alleged large-scale data scraping

October 23, 2025
Google’s Live Threat Detection is reportedly coming to more Android phones

Google’s Live Threat Detection is reportedly coming to more Android phones

October 23, 2025
The ChatGPT Atlas browser is already facing its first security exploit

The ChatGPT Atlas browser is already facing its first security exploit

October 23, 2025
The Willow chip marks a new milestone in Google’s quantum race

The Willow chip marks a new milestone in Google’s quantum race

October 23, 2025
HBO Max finally lets you tell the algorithm what you actually think

HBO Max finally lets you tell the algorithm what you actually think

October 23, 2025
The Lomo MC-A is a film camera with USB-C charging capability

The Lomo MC-A is a film camera with USB-C charging capability

October 23, 2025

LATEST NEWS

Reddit sues Perplexity over alleged large-scale data scraping

Google’s Live Threat Detection is reportedly coming to more Android phones

The ChatGPT Atlas browser is already facing its first security exploit

The Willow chip marks a new milestone in Google’s quantum race

HBO Max finally lets you tell the algorithm what you actually think

The Lomo MC-A is a film camera with USB-C charging capability

Dataconomy

COPYRIGHT © DATACONOMY MEDIA GMBH, ALL RIGHTS RESERVED.

  • About
  • Imprint
  • Contact
  • Legal & Privacy

Follow Us

  • News
    • Artificial Intelligence
    • Cybersecurity
    • DeFi & Blockchain
    • Finance
    • Gaming
    • Startups
    • Tech
  • Industry
  • Research
  • Resources
    • Articles
    • Guides
    • Case Studies
    • Glossary
    • Whitepapers
  • Newsletter
  • + More
    • Conversations
    • Events
    • About
      • About
      • Contact
      • Imprint
      • Legal & Privacy
      • Partner With Us
No Result
View All Result
Subscribe

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Privacy Policy.