Show HN: Ask CLI – 一个简单的开源工具,用于获取命令行帮助
1 分•作者: david-minaya•22 天前
我想分享 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'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'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 "what" and "how" 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><a href="https://github.com/david-minaya/ask" rel="nofollow">https://github.com/david-minaya/ask</a>