{"id":13477055,"url":"https://github.com/gorilla-llm/gorilla-cli","last_synced_at":"2025-05-15T05:08:04.026Z","repository":{"id":177383629,"uuid":"656095561","full_name":"gorilla-llm/gorilla-cli","owner":"gorilla-llm","description":"LLMs for your CLI","archived":false,"fork":false,"pushed_at":"2024-05-29T22:15:27.000Z","size":47,"stargazers_count":1337,"open_issues_count":19,"forks_count":75,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-04-14T08:11:03.626Z","etag":null,"topics":["aws","bash","cli","gcp","iterm2","k8s","kubernetes","kubernetes-cli","llm","productivity","shell","terminal","wsl","zsh"],"latest_commit_sha":null,"homepage":"https://gorilla.cs.berkeley.edu/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gorilla-llm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-20T08:49:46.000Z","updated_at":"2025-04-14T07:34:02.000Z","dependencies_parsed_at":"2024-06-20T19:06:08.590Z","dependency_job_id":null,"html_url":"https://github.com/gorilla-llm/gorilla-cli","commit_stats":null,"previous_names":["gorilla-llm/gorilla-cli"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorilla-llm%2Fgorilla-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorilla-llm%2Fgorilla-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorilla-llm%2Fgorilla-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gorilla-llm%2Fgorilla-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gorilla-llm","download_url":"https://codeload.github.com/gorilla-llm/gorilla-cli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254276447,"owners_count":22043867,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","bash","cli","gcp","iterm2","k8s","kubernetes","kubernetes-cli","llm","productivity","shell","terminal","wsl","zsh"],"created_at":"2024-07-31T16:01:37.737Z","updated_at":"2025-05-15T05:07:59.007Z","avatar_url":"https://github.com/gorilla-llm.png","language":"Python","readme":"# Gorilla CLI\n\n\u003cimg src=\"https://github.com/ShishirPatil/gorilla/blob/gh-pages/assets/img/logo.png\" width=20% height=20%\u003e\n\nGorilla 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! 🦍\n\nDeveloped by UC Berkeley as a research prototype, Gorilla-CLI prioritizes user control and confidentiality:\n - Commands are executed solely with your explicit approval.\n - While we utilize queries and error logs (stderr) for model enhancement, we NEVER collect output data (stdout).\n\n![gorilla-cli](https://github.com/gorilla-llm/gorilla-cli/assets/30296397/f448c04b-e2a1-4560-b040-37f9840c356d)\n\n## Getting Started\n\nYou can readily install Gorilla CLI via pip. \n\n```bash\npip install gorilla-cli\n```\n\n## Usage\n\nActivate Gorilla CLI with `gorilla` followed by your task in plain English.\n\nFor instance, to generate a file with 100 random characters, type:\n\n```bash\n$ gorilla generate 100 random characters into a file called test.txt\n```\n\nor if you prefer, you can use quotes to avoid issues with string parsing:\n\n```bash\n$ gorilla \"generate 100 random characters into a file called test.txt\"\n```\n\nGorilla CLI will then generate candidate commands. Use the arrow keys to navigate through the options, then press enter to execute the chosen command. \n\n```bash\n🦍  Welcome to Gorilla. Use arrows to select\n » cat /dev/urandom | env LC_ALL=C tr -dc 'a-zA-Z0-9' | head -c 100 \u003e test.txt \n   echo $(head /dev/urandom | LC_CTYPE=C tr -dc 'a-zA-Z0-9' | dd bs=100 count=1) \u003e test.txt\n   dd if=/dev/urandom bs=1 count=100 of=test.txt\n```\n\nSome more examples\n\n```bash\n$ gorilla list all my GCP instances\n» gcloud compute instances list --format=\"table(name,zone,status)\"\n  gcloud compute instances list --format table\n  gcloud compute instances list --format=\"table(name, zone, machineType, status)\"\n```\n```bash\n$ gorilla get the image ids of all pods running in all namespaces in kubernetes\n» kubectl get pods --all-namespaces -o jsonpath=\"{..imageID}\"\n  kubectl get pods --all --namespaces\n  kubectl get pod -A -o jsonpath='{range .items[*]}{\"\\n\"}{.metadata.name}{\"\\t\"}{.spec.containers[].image}{\"\\n\"}{end}'\n```\n\n\n## How It Works\n\nGorilla-CLI fuses the capabilities of various Language Learning Models (LLMs) like [Gorilla LLM](https://github.com/ShishirPatil/gorilla/), 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. \n\n### Arguments\n\n```\nusage: go_cli.py [-h] [-p] [command_args ...]\n\nGorilla CLI Help Doc\n\npositional arguments:\n  command_args   Prompt to be inputted to Gorilla\n\noptional arguments:\n  -h, --help     show this help message and exit\n  -p, --history  Display command history\n```\n\nThe history feature lets the user go back to previous commands they've executed to re-execute in a similar fashion to terminal history.\n\n\n## Contributions\n\nWe welcome your enhancements to Gorilla CLI! If you have improvements, feel free to submit a pull request on our GitHub page. \n\n## License\n\nGorilla 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](https://github.com/tmbo/questionary) for their fantastic UI!\n","funding_links":[],"categories":["Python","Projects","cli"],"sub_categories":["💻 Terminal"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorilla-llm%2Fgorilla-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgorilla-llm%2Fgorilla-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgorilla-llm%2Fgorilla-cli/lists"}