Shellm is a command line tool that helps you ask LLMs to create shell commands. It is written in Go for portability and speed. Currently only OpenAI GPT-4o-mini is supported.
To install Shellm, run this command in your terminal:
bash <(curl -L https://shellm.arthurhemmer.com/install.sh)
Here's an example of how to use Shellm to find Go files recursively:
# Query
$ shellm list all go files recursively with their respective file sizes
find . -name "*.go" -exec du -h {} \;
Do you want to execute (y)es or (n)o, or (q)uit? [y] y
4,0K ./internal/prompt/prompt.go
8,0K ./cmd/shellm/main.go
To update Shellm to the latest version, simply run:
shellm update