quickly look up console commands using the GPT API
This is a pretty simple CLI to help you find that command you can never remember using the OpenAI chat completion API with either gpt-3.5-turbo or gpt-4. Usually faster than googling it.
Also comes with the neat advantage of being personalized to whatever you need. Notice how in the example above, I specifically asked to modify "Video.mov" and it automatically generated Video_stretched.mov as the output file.
Install using npm (Node.js required):
npm i -g howtf
Unless youd ou'll be prompted to enter a OpenAI API key. You can generate one here.
howtf [command]
Save your OpenAI API key so you don't have to enter it every time:
howtf -K [your API key]
# you can either pass it as an argument or enter it interactively
howtf convert input.mp4 to gif with ffmpeg
# ❯ ffmpeg -i input.mp4 output.gif
howtf undo last 3 commits
# ❯ git reset HEAD~3 --hard
Option | Description |
---|---|
--help, -h | print help |
--version, -v | print version |
--model, -m | use model (gpt-3.5-turbo or gpt-4, you can also just pass 3 or 4) |
--set-model, -M | set model and save to config |
--key, -k | pass OpenAI API key once |
--set-key, -K | set OpenAI API key |
--config, -c | print config file location |
--clear, -C | clear config file |