Cmd-Fixer
Cmd-Fixer is a Python CLI tool that helps you fix corrupted or incorrect shell commands using AI. It suggests possible corrections, lets you preview them, and optionally executes the selected command immediately.
Features
- AI-powered shell command fixing using Gemini LLM.
- Interactive CLI with numbered command suggestions.
- Option to execute the suggested command directly.
- Stores API key and user preferences locally for seamless usage.
- Configurable maximum number of suggestions per fix.
Installation
Install the package via pip:
pip install cmdfixer-gemini
First-Time Setup
Before using Cmd-Fixer, you must set up your Gemini API key. Run the following command:
cmdfix setup
- You will be prompted to enter your Gemini API key. (Get your key from https://aistudio.google.com/api-keys)
- You will also be asked to set the maximum number of suggestions per fix.
- The configuration will be saved locally, so you don’t need to enter it again.
Usage
After setup, you can use Cmd-Fixer to fix shell commands:
cmdfix fix <your-broken-command>
Options:
--run: Execute the selected command immediately instead of just previewing it.
Example:
cmdfix fix mkdir new_folder --run
This will suggest corrected commands for mkdir new_folder and execute the chosen one immediately if --run is provided.
License
MIT License
Metadata
Release files for cmdfixer-gemini 0.1.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cmdfixer_gemini-0.1.9.tar.gz | 7.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cmdfixer_gemini-0.1.9-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.0 kB
Release files / cmdfixer_gemini-0.1.9.tar.gz
| Download URL | cmdfixer_gemini-0.1.9.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba9ab63e84370491cafcbe4b1602813f170ad66dd3ebee3c88da6d57cf87f588
|
|
BLAKE2b-256 checksum How to use checksums |
11cc03b1733f93a721804435843dfc078beafd917660257e314f0c7ec3c4c89f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / cmdfixer_gemini-0.1.9-py3-none-any.whl
| Download URL | cmdfixer_gemini-0.1.9-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b78a007812096f73482d824ee4afa32973479305fd1ea7bf591cc9e5cc202c76
|
|
BLAKE2b-256 checksum How to use checksums |
8141755783da34cb3a2cce34ca9deb08576895b6b8a0a374415dfde921dd2e9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|