对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

agentengine completion zsh

为 zsh 生成自动完成脚本

为 zsh Shell 生成自动完成脚本。

如果您的环境中尚未启用 shell 完成,则需要将其启用。 您可以执行一次以下操作:

echo "autoload -U compinit; compinit" >> ~/.zshrc

要在当前 Shell 会话中加载补全:

source <(agentengine completion zsh)

要为每个新会话加载完成,请执行一次:

agentengine completion zsh > "${fpath[1]}/_agentengine"
agentengine completion zsh > $(brew --prefix)/share/zsh/site-functions/_agentengine

您需要启动新的 shell 才能使此设置生效。

agentengine completion zsh [flags]
-h, --help help for zsh --no-descriptions disable completion descriptions
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)
给本页内容打分