Skip to content

A simple command line wrapper for Google Gemini

Notifications You must be signed in to change notification settings

jhideki/gemini-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gemini-cli

A simple command line wrapper for the google gemini ai model.

Requirements

Features

  • Full message thread support
  • Write code snippets to files

Installation

  1. Install rust
  2. Clone this repo
git clone https://github.com/jhideki/gemini-cli.git
  1. Add your gemini api key as an environment variable
GEMINI_API_KEY=<your api key>
  1. Build project
carbo build --release
  1. Add executable to system PATH
export PATH="/home/user/gemini-cli/target/release:$PATH"

Usage

To start a message call

gemini-cli

The cli will prompt you type in a query. You can pass gemini files by specifiying the file path '<>' E.g.,

Enter a prompt:
Explain what this file does <main.rs>

If the response includes a code snippet, gemini-cli will the write the code to a file within the './responses' directory with the relevant extension.

About

A simple command line wrapper for Google Gemini

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages