Genshell is a CLI tool that generates shell commands from natural language descriptions using AI models (Google's Gemini and OpenAI's ChatGPT).
- Generate shell commands using natural language descriptions.
- Support for multiple AI providers (Gemini and ChatGPT).
- Configurable profiles to switch between different API keys and models.
- Supports various shell environments (Bash, Zsh, Fish, PowerShell).
npm install -g genshell
You can configure multiple profiles and switch between them.
genshell config add --profile-name <profileName> --api-key <apiKey> --model <model> --provider <provider>
genshell config update --profile-name <profileName> --api-key <apiKey> --model <model> --provider <provider>
genshell config list
genshell config active
genshell config activate <profileName>
genshell config remove --profile-name <profileName>
To generate a shell command:
genshell "description of the command"
To generate and execute the command:
genshell "description of the command" --execute
genshell "list all files in the current directory"
# Output: ls -al
genshell "create a new directory named 'my-dir'"
# Output: mkdir my-dir
-
chatgpt
: Use OpenAI's ChatGPT for generating shell commands. -
gemini
: Use Google's Gemini for generating shell commands.
Check here for a list of supported models by OpenAI API.
Check here for a list of supported models by Gemini API.