Skip to main content

Gemini CLI

·248 words·2 mins
xx
Posts cli gemini google
Table of Contents
Gemini CLI: your open-source AI agent.

Just follow the quickstart guide at the GitHub repo: Gemini CLI. I just install the command-line AI workflow tool from Google.

Quickstart
#

Here’s my setup:

  1. Setup Node.js1 (> v18.x).
  2. Install Gemini-CLI with npm.
  3. Simply start with gemini.
  4. Pick Ayu Light theme.
  5. Select Login with Google authenticate mode.

Show Version
#

At the cmdline, we can check the gemini-cli version:

xx@pf22:~$ gemini -v
0.1.9

Or, in the gemini app, we can type /about to have the about screen.

Show Help
#

At the prompt, simply /help will show the help screen commands. Here’s the list of commands:

Commands:
  /help - for help on gemini-cli
  /docs - open full Gemini CLI documentation in your browser
  /clear - clear the screen and conversation history       
  /theme - change the theme                               
  /auth - change the auth method                         
  /editor - set external editor preference              
  /privacy - display the privacy notice               
  /stats - check session stats. Usage: /stats [model|tools]
  /mcp - list configured MCP servers and tools            
  /memory - manage memory. Usage: /memory <show|refresh|add> [text for add] 
  /tools - list available Gemini CLI tools   
  /about - show version info                
  /bug - submit a bug report               
  /chat - Manage conversation history. Usage: /chat <list|save|resume> [tag] 
  /quit - exit the cli                             
  /compress - Compresses the context by replacing it with a summary. 
  ! - shell command                           

Logout/Quit
#

To exit the app, type /quit.

Links#

Author
xx
cli-geek

Related

Microsoft Edit (Remake)
·150 words·1 min
Posts cli opensource tools
From 16-bit to 64-bit cli-app.
HTTP Request with Bash
·162 words·1 min
Posts bash cli http
HTTP request without curl.
Fingerprint HTTPS Certificate
·801 words·4 mins
Posts cli fingerprint https python
Detecting HTTPS interception with fingerprint.