Skip to content

A CLI tool that transforms natural language into bash commands

License

Notifications You must be signed in to change notification settings

alexOarga/co-bash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

co:bash - Cohere powered bash commands

pypi

co:bash is a CLI tool for converting natural language into bash commands. It is powered by Cohere.

screenshot example

Install

co:bash can be installed via pip:

pip install co-bash

Setup

To use co:bash you will need your own Cohere API key. You can get one at cohere.ai. You can set your API key in the environment variable COHERE_API_KEY. I suggest adding this to your .bashrc file.

export COHERE_API_KEY=XXXXXXXXXX

Optional: You can also set the Cohere model you want to use with the environment variable COHERE_MODEL:

export COHERE_MODEL=xlarge

Usage

Just use the co command to run co:bash:

$ co <arguments>

Example

$ co create a git commit with message 'initial commit'
Suggested command:
    git commit -m 'initial commit'
Execute? [y/N]: y
[master (commit-raíz) d55572b] initial commit
 19 files changed, 561 insertions(+)
 create mode 100644 LICENSE
 create mode 100644 README.md
 create mode 100644 co/__init__.py
 create mode 100644 co/cohere.py
 create mode 100644 co/constants.py
 create mode 100644 co/entrypoint.py

Releases

No releases published

Packages

No packages published

Languages