Skip to content

Files

Latest commit

3bfce09 · May 10, 2024

History

History
54 lines (39 loc) · 1000 Bytes

README.md

File metadata and controls

54 lines (39 loc) · 1000 Bytes

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.