Generate Terminal Commands from Natural Language with Gemini
- global install using uv
uv tool install gllm-cliGLLM requires a Google Google API key. You can set it up in two ways:
-
provided by
--keyoptiongllm --key=YOUR_GEMINI_API_KEY your prompt
-
Set it as an environment variable:
export GEMINI_API_KEY=your-api-key-here
After installation, you can use the gllm command directly from your terminal:
# Basic usage
gllm list all files in the current directory
# Use a different model, default to `gemini-2.5-flash`
gllm --model gemini-2.5-pro show disk usage
# Customize the system prompt
gllm --system-prompt "Generate PowerShell commands" list files in the current directory--model: Gemini model to use (default: gemini-2.5-flash)--system-prompt: System prompt for the LLM--key: your gemini api key