cmdhelp is a lightweight utility that allows you to ask simple command-line questions to ChatGPT. This tool aims to make the installation and usage as straightforward as possible, providing you with immediate answers to your command-line queries without any external dependencies once built.
- Ask common command-line questions
- Easy setup and usage
Only for Apple M1
Go the the latest run action here and download the zip file from the Artifacts
section
-
Clone the repository:
git clone https://github.com/yourusername/cmdhelp.git cd cmdhelp
-
Build the project:
mvn clean install
-
Run the jar file with your OpenAI API key:
API_KEY="_your_api_key_" java -jar target/cmdhelp-1.0-SNAPSHOT-jar-with-dependencies.jar "your question here"
Follow the instruction from official GraalVM website
- Fork the project
- Enable GitHub Actions
- Add required OS to the build matrix
- Run the job
- Once the build completes, download the executable from the GitHub Actions artifacts.
After building the project or obtaining a native executable, you can use cmdhelp to ask command-line questions:
API_KEY="_your_api_key_" ./cmdhelp "How to find the biggest file in a directory?"
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the GraalVM team for providing the tools needed to create native images.