Skip to main content

LLMs for CLI

Project description

Gorilla CLI

Gorilla CLI powers your command-line interactions with a user-centric tool. Simply state your objective, and Gorilla CLI will generate potential commands for execution. Gorilla today supports ~1500 APIs, including Kubernetes, AWS, GCP, Azure, GitHub, Conda, Curl, Sed, and many more. No more recalling intricate CLI arguments! 🦍

Developed by UC Berkeley as a research prototype, Gorilla-CLI prioritizes user control and confidentiality:

  • Commands are executed solely with your explicit approval.
  • While we utilize queries and error logs (stderr) for model enhancement, we NEVER collect output data (stdout).

Getting Started

You can readily install Gorilla CLI via pip.

pip install gorilla-cli

Usage

Activate Gorilla CLI with gorilla followed by your task in plain English.

For instance, to generate a file with 100 random characters, type:

$ gorilla generate 100 random characters into a file called test.txt

or if you prefer, you can use quotes to avoid issues with string parsing:

$ gorilla "generate 100 random characters into a file called test.txt"

Gorilla CLI will then generate candidate commands. Use the arrow keys to navigate through the options, then press enter to execute the chosen command.

🦍  Welcome to Gorilla. Use arrows to select
 » cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | head -c 100 > test.txt 
   echo $(head /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | dd bs=100 count=1) > test.txt
   dd if=/dev/urandom bs=1 count=100 of=test.txt

Some more examples

$ gorilla list all my GCP instances
» gcloud compute instances list --format="table(name,zone,status)"
  gcloud compute instances list --format table
  gcloud compute instances list --format="table(name, zone, machineType, status)"
$ gorilla get the image ids of all pods running in all namespaces in kubernetes
» kubectl get pods --all-namespaces -o jsonpath="{..imageID}"
  kubectl get pods --all --namespaces
  kubectl get pod -A -o jsonpath='{range .items[*]}{"\n"}{.metadata.name}{"\t"}{.spec.containers[].image}{"\n"}{end}'

How It Works

Gorilla-CLI fuses the capabilities of various Language Learning Models (LLMs) like Gorilla LLM, OpenAI's GPT-4, Claude v1, and others to present a user-friendly command-line interface. For each user query, we gather responses from all contributing LLMs, filter, sort, and present you with the most relevant options.

Contributions

We welcome your enhancements to Gorilla CLI! If you have improvements, feel free to submit a pull request on our GitHub page.

License

Gorilla CLI operates under the Apache 2.0 license. More details can be found in the LICENSE file. We'd also like to extend our appreciation to questionary for their fantastic UI!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gorilla-cli-0.0.10.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

gorilla_cli-0.0.10-py3-none-any.whl (37.9 kB view details)

Uploaded Python 3

File details

Details for the file gorilla-cli-0.0.10.tar.gz.

File metadata

  • Download URL: gorilla-cli-0.0.10.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.12

File hashes

Hashes for gorilla-cli-0.0.10.tar.gz
Algorithm Hash digest
SHA256 bf375230a06fac99ba56f14f49474466036f072751cd1d5a1908e8ace561856c
MD5 915ec576ffcdde05b37d9d9fc30f6fee
BLAKE2b-256 cd2b7a64f9ad59009e72ddf73d055195b4bf23e15599a61e66f1458b4025b9e5

See more details on using hashes here.

File details

Details for the file gorilla_cli-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: gorilla_cli-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 37.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.12

File hashes

Hashes for gorilla_cli-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 822b1863ee42a7b6bebb7154d736505d0d5d00314e00995710f9b696cdd7a550
MD5 2e9ce89eefa586dacf61da6bda9bcb36
BLAKE2b-256 e0785d6414e11f18ee3e4710aafb8dbe465ec0f8b563c21d70757bac66ba73a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page