Skip to content

Latest commit

 

History

History
70 lines (41 loc) · 1.36 KB

README.md

File metadata and controls

70 lines (41 loc) · 1.36 KB

Go Reference

Terminal AI

A command line tool that uses Gemini AI and OpenAI API to generate text and code.

Installation

You can download the latest release for Debian or Arch based distros from the release page, or you can build from the source.

If you using Arch Linux or Arch based distro, you can install the terminalAI using PKGBUILD

You have to install Go and set up the environment before installing the tool.

git clone https://github.com/Elixir-Craft/terminalAI.git
cd terminalAI
go mod tidy

Build

go build -v -o out ./...  

Options

  • -i <input file> Input file path
  • -o <output file> Output file path
  • -p <Prompt> Prompt
  • -c Prompt from clipboard
  • chat Chat with AI
  • config Configure Services and API Keys

Set configurations

terminalai config init

Usage

terminalai "Generate Some Text"
terminalai -p " $(tree -L 2) generate docker-compose file for this project" -o docker-compose.yaml 
terminalai -i input.txt -p "Read the following text and generate a summary" -o output.txt

Chat

terminalai chat