Natural language shell commands.
Project description
shllm
Generate shell commands using natural language.
Installation
echo "export SHLLM_OPENAI_KEY={{OpenAI API Key}}" >> ~/.zshrc
pip install uv
uv pip install shllm
Alternatively:
echo "export SHLLM_OPENAI_KEY={{OpenAI API Key}}" >> ~/.zshrc
pipx install shllm
Usage
shllm {{what you want to do}}
Example
shllm show how many gigabytes of free space I have left on my hard drive
Command: df -h . | awk 'NR==2 {print $4}'
Would you like to run this command? [y]es/[n]o: y
Running: df -h . | awk 'NR==2 {print $4}'
425Gi
Features
- Direct command execution: Run generated commands with simple yes/no confirmation
- Smart command generation: Uses advanced AI to translate natural language to shell commands
- Non-interactive mode: Automatically detects non-interactive environments and skips prompts
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
shllm-0.0.8.tar.gz
(4.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
shllm-0.0.8-py3-none-any.whl
(2.7 kB
view details)
File details
Details for the file shllm-0.0.8.tar.gz.
File metadata
- Download URL: shllm-0.0.8.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db876518646077fde542a43d9b395fc2bc28988527f75bc00e6542a1848536f4
|
|
| MD5 |
a23be588ead6c85a390bb1a585ab32b2
|
|
| BLAKE2b-256 |
895538e06ee2fc58d30e958997e2746cf8bfdb7d2032f656292e9990ddad183d
|
File details
Details for the file shllm-0.0.8-py3-none-any.whl.
File metadata
- Download URL: shllm-0.0.8-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff035551c18420ae618cde0f900b894caa3524d16d46ae39562402fc0e499b60
|
|
| MD5 |
1bbdae4048c2774b44626be4708b1c19
|
|
| BLAKE2b-256 |
9cb38a8070a439263dbe8d2c98227b6b106c29c17bf715c18c9a1aaf95985ab0
|