chatrun
v1.0.1
Published
Use any CLI with natural language
Downloads
4
Readme
chatrun
Use any CLI with natural language.
chatrun
is a CLI tool that allows you to interact with any CLI using natural language. It uses OpenAI's GPT to convert your natural language query into a CLI command. It uses CLI man pages or help text to generate the command, so it is not limited to its implicit knowledge. This makes it useful for novel or less popular CLIs.
Pre-requisites
Export OPENAI_API_KEY
in your environment.
export OPENAI_API_KEY=sk-...
Installation
npm install -g chatrun
Usage examples
List all packages installed with brew
.
chatrun --run "brew" --chat "list all packages"
Find all commits from yesterday.
chatrun --run "git" --chat "find all commits from yesterday"