go-gemini-cli

command module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 1 Imported by: 0

README

Go Gemini CLI

Go Gemini CLI is a command-line interface (CLI) tool written in Go, utilizing Cobra and Viper libraries, designed to interact with the LLM Gemini API. With this CLI, you can easily configure your API key and make queries to the Gemini platform.

Installation

To install Go Gemini CLI, you need to have Go installed on your system. Then, you can install the CLI using the following command:

go install github.com/thiagosousasantana/go-gemini-cli

Usage

After installation, you can use the CLI with the following commands:

Config

Use the config command to set up your API key. This command requires the API key as an argument.

go-gemini-cli config --api-key <your-api-key>

Replace <your-api-key> with your actual Gemini API key. If you do not have one you can generate on this link.

Running this command it will create a YML file on your $HOME with your configuration.

Ask

The ask command allows you to make a question to the Gemini AI.

go-gemini-cli ask --query "Your question goes here?"

Replace "Your question goes here?" with your actual question.

Contributing

Contributions are welcome! Feel free to open issues or submit pull requests to improve the CLI.

Documentation

Overview

Copyright © 2024 Thiago Santana

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL