@getdonn/cli

中文文档
0.16.0发布于 2026/10/29Apache-2.0ES Module构建来源已验证近 30 天下载 2798

The donn command line

原始使用文档
文档目录6 节
  1. Install
  2. Quick start
  3. Agents
  4. The web UI
  5. Who uses it directly
  6. Docs

@getdonn/cli

donn is a persona compiler and control plane for AI coding harnesses. A persona is a declarative, composable bundle (instructions, skills, MCP servers, permissions, hooks, knowledge pointers, secret references) that inherits through org, area, team, project and user layers and compiles to each harness's native config. This package provides the donn command.

Install

npm i -g @getdonn/cli

Requires Node 24 or later.

Quick start

donn init --personas ~/personas   # set up your personas folder (flags only)
donn init --extends <persona>     # set up a project that extends a persona
donn claude                       # launch Claude Code with the active persona
donn mod install                  # add the Claude Code mod (status band and /persona)

Run donn --help for every command; each supports --json.

Agents

A project persona can declare agents that run on it (eve is the first framework):

donn agent create pr-bot --template eve:blank --target local
donn agent vendor <folder|git-url>  # copy an eve template into .donn/templates and record its source
donn agent run pr-bot            # local: eve build + start, through the daemon when it runs
donn agent run pr-bot --port 8787  # keep a local agent on port 8787 (stored); point a tunnel at it
donn agent build pr-bot          # self-host: eve build, deploy/donn/Dockerfile and env.json
donn agent deploy pr-bot         # vercel: link, env push after confirming, eve deploy

Also add (an eve registry item, such as channel/github, with eve's questions), templates (the templates create takes), deploy --dry-run (what a deploy would set, nothing pushed), list, sync, stop, logs, env and exec (meant for entrypoints and scripts: no stdin or terminal). Run self-host images with docker run --init. The README's Agents section covers targets, the two images to ship, env.json and secrets.

The web UI

donn ui              # open the app in your browser (starts the daemon unless daemon.autoStart is false)
donn ui --no-open    # print the URL, with its one-time code, instead
donn ui --port 7777  # listen on a fixed port (127.0.0.1 only)

The app ships inside this package. See the README's web UI section for the screens and the bridge's security model.

Who uses it directly

End users. The other @getdonn/* packages are libraries behind this command.

Docs

版本与发布记录

@getdonn/cli 共发布 14 个版本,首次发布于 2026/10/25;过去 12 个月发布了 14 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.16.0latest2026/10/2918 天前
0.15.02026/10/2918 天前
0.14.12026/10/2818 天前
0.14.02026/10/2720 天前
0.13.22026/10/2620 天前
0.13.12026/10/2620 天前

关于 @getdonn/cli 的常见问题

@getdonn/cli 是什么?

The donn command line

如何安装 @getdonn/cli?

在项目目录运行 npm install @getdonn/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 donn,可以用 npx donn 直接运行。

@getdonn/cli 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/getdonn__cli 是否存在。

@getdonn/cli 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@getdonn/cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@getdonn/cli 可以商用吗?

@getdonn/cli 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@getdonn/cli 的下载量有多少?

根据 npm 官方下载统计,@getdonn/cli 在 2026/10/17 – 2026/11/15 这 30 天内被下载 2,798 次,日均约 93 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@getdonn/cli 还在维护吗?

最新版本 0.16.0 发布于 2026/10/29(18 天前);至今共发布 14 个版本,其中过去 12 个月发布了 14 个;首次发布于 2026/10/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。