针对您的 CLI 的 LLM
Gorilla CLI 可通过以用户为中心的工具实现命令行交互。只需说明目标,Gorilla CLI 便会生成可执行的潜在命令。Gorilla 目前支持约 1500 个 API,包括 Kubernetes、AWS、GCP、Azure、GitHub、Conda、Curl、Sed 等。再也不用记着复杂的 CLI 参数了! 由加州大学伯克利分校开发的 Gorilla-CLI 优先考虑用户控制和保密性:
您可以通过 pip 轻松安装 Gorilla CLI。
pip install gorilla-cli使用 gorilla 后跟着您要执行的任务(用普通英语写),即可激活 Gorilla CLI。
例如,要生成包含 100 个随机字符的文件,请键入:
$ gorilla generate 100 random characters into a file called test.txt或者,如果您愿意,可以使用引号来避免字符串解析问题:
$ gorilla "generate 100 random characters into a file called test.txt"然后, Gorilla CLI 会生成候选命令。使用方向键浏览选项,然后按 Enter 键执行所选命令。
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还有些其他示例
$ 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}'Gorilla-CLI 将各种 LAN 的功能融合在一起
暂无开放 Issues,或尚未同步最近议题。