{"repo":"pgibler/cmdh","free":true,"listed":false,"github":"https://github.com/pgibler/cmdh","clone":"git clone https://github.com/pgibler/cmdh.git","description":"Create Linux commands from natural language, in the shell.","language":"TypeScript","stars":134,"topics":["artificial-intelligence","automation","shell","typescript"],"license":"MIT","category":"workflow-automation","readme_excerpt":"cmdh - Generate Linux commands using an LLM cmdh (short for Command Helper) is a tool that invokes LLM models provided by ollama or OpenAI to convert a command request into a desired command. Use it to look up commands and flags that that you don't know offhand or generate complex commands with chaining. cmdh demonstration video.webm Features - Generate Linux commands from natural language - Interactively run the commands using a hotkey menu system - Differentiates between shell command types: interactive and non-interactive - Supports ChatGPT, ollama, and text-generation-webui Prerequisites - NodeJS - installation guide - npm - installation guide - tsc - installation guide Installation 1. Set up and configure cmdh using the following command: 2. Run it like so: 3. Interact with the result interface to run the setup commands, desired command, all of the commands, or quit. NOTE : You will have to reload your .bashrc / .zshrc / etc. or open a new terminal to make the cmdh command available in the shell. In Debian / Ubuntu, this is done by running source /.bashrc . Configuring Before running cmdh, you will need to configure an LLM host and set configuration options required of that host. - Run cmdh configure to start the configuration wizard. You will be asked to select an LLM host and input settings required by that host. - Run cmdh configure show to display your current configuration. OpenAI 1. Generate an OpenAI key here. 2. Run cmdh configure and select the OpenAI option. 3.","default_branch":null,"files":null,"tree":[],"storefront":"/r/pgibler","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pgibler/cmdh/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}