Ask CLI:一个简单的开源工具,用于从终端获取命令帮助。

2作者: david-minaya7 天前原帖
我想分享一下 Ask CLI,这是我开发的一款工具,可以直接在终端中获取命令和编码的帮助。它是一个简单的应用程序,旨在高效地完成一件事情:提供即时的命令帮助。这并不是像 Claude Code 那样复杂的编码代理,而是专门为快速、简洁的答案而设计,避免了上下文切换。 作为一名开发者,我一直很难记住每个命令及其具体选项。每当我需要使用 Docker、Git 或 psql 等工具时,我总是不得不离开终端去查阅文档,或者在冗长的 --help 文本中滚动,只为了回忆起一个特定的标志。我通常知道自己想做什么,但却忘记了确切的语法。我不想浪费时间切换到 Google 或 ChatGPT 仅仅为了找到一行命令。 我开发了 Ask CLI 来解决这个问题。它彻底改变了我的工作流程。现在,当我忘记一个命令时,我只需询问我的终端。它会给我一个快速、准确的答案——正是我所需要的——而不会打断我的思路。 使用起来非常简单:只需选择一个 AI 模型,设置你的 API 密钥,然后与终端自然对话即可。 示例: ``` $ ask 如何运行带有环境变量的 docker 容器 $ ask 如何设置我的本地 git 账户 ``` 你还可以使用“what”和“how”别名,使对话更加自然: ``` $ what 是 chmod $ how 打印所有环境变量 ``` 你可以使用 Ask CLI 与流行的托管模型(如 Gemini、Claude、ChatGPT)或与支持 OpenAI 兼容 API 的本地模型和外部提供商(如 Ollama、llama.cpp、LM Studio 等)一起使用。 Ask CLI 是免费的开源软件。你可以在这里查看: https://github.com/david-minaya/ask
查看原文
I want to share Ask CLI, a tool I developed to get help with commands and coding directly from the terminal. It is a simple app designed to do one thing well: provide instant command assistance. This isn&#x27;t a complex coding agent like Claude Code; it is built specifically to get short, fast answers without context switching.<p>As a developer, I’ve always struggled to remember every command and its specific options. Whenever I need to use tools like Docker, Git, or psql, I find myself leaving the terminal to check documentation or scrolling through verbose --help text just to recall a specific flag. I usually know what I want to do, but I forget the exact syntax. I didn&#x27;t want to waste time switching to Google or ChatGPT just to find a one-line command.<p>I developed Ask CLI to solve this. It has been a game-changer for my workflow. Now, when I forget a command, I simply ask my terminal. It gives me a fast, precise answer—exactly what I need—without breaking my flow.<p>It is incredibly easy to use: just select an AI model, set your API key, and start chatting naturally with your terminal.<p>Examples:<p>$ ask how to run a docker container with env variables<p>$ ask how to setup my local git account<p>You can also use the &quot;what&quot; and &quot;how&quot; aliases for a more natural feel:<p>$ what is chmod<p>$ how to print all the env variables<p>You can use Ask CLI with popular hosted models (Gemini, Claude, ChatGPT) or with local models and external providers that support OpenAI-compatible APIs (Ollama, llama.cpp, LM Studio, etc.).<p>Ask CLI is free and open-source. Check it out here:<p>https:&#x2F;&#x2F;github.com&#x2F;david-minaya&#x2F;ask