A simple command line wrapper for the google gemini ai model.
- Rust
- Gemini api key
- Full message thread support
- Write code snippets to files
- Install rust
- Clone this repo
git clone https://github.com/jhideki/gemini-cli.git
- Add your gemini api key as an environment variable
GEMINI_API_KEY=<your api key>
- Build project
carbo build --release
- Add executable to system PATH
export PATH="/home/user/gemini-cli/target/release:$PATH"
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.