tree 命令打印 CLI 的完整命令树,可选择展开每个命令的参数与选项,或以机器可读的 JSON 格式输出。
tree
打印完整的命令树。agentkit --version,再查看目标命令的 --help
需要保存命令清单供脚本读取时:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
tree 命令打印 CLI 的完整命令树,可选择展开每个命令的参数与选项,或以机器可读的 JSON 格式输出。
| 标志/参数 | 说明 | 默认值 |
|---|---|---|
--json | 以 JSON 格式输出命令树 | false |
-a, --all | 同时展开每个命令的参数与选项 | false |
agentkit tree --all
agentkit --version,再查看目标命令的 --help
需要保存命令清单供脚本读取时:
agentkit tree --all --json > command-tree.json