ShellSage is a command-line tool that utilizes the Gemini API to leverage artificial intelligence in generating and explaining shell commands based on your prompts. It simplifies your workflow by understanding your intent and providing the necessary commands to achieve your tasks.
Usage
ShellSage - Your AI-powered Shell Guide
Usage: shellsage [flags] shellsage [command]
Examples:
shellsage "List all files in the current directory."
Available Commands:
completion
Generate the autocompletion script for the specified shell.
explain
Understand your shell commands by providing explanations for them.
help
Help about any command.
Flags:
-h, --help Display help information for ShellSage.
Use shellsage [command] --help for more information about a command.
Commands
1. shellsage
The shellsage command takes a string as an argument and generates a shell command based on that string.
Example:
$ shellsage "list all files"
$ >> ls -a
2. shellsage explain
The shellsage explain command takes a string (shell command) as an argument and explains the functionality of the given shell command.
Example:
$ shellsage explain "ls -a"
$ Explanation >>