@dam-agents/cli

中文文档
0.2.26发布于 2026/11/06Apache-2.0ES Module零依赖构建来源已验证近 30 天下载 3651
原始使用文档
文档目录5 节
  1. Install
  2. Usage
  3. Use it from your own agent
  4. Links
  5. License

@dam-agents/cli

Command-line interface for DAM — run your own background AI coding agents on Kubernetes.

Install

npm install -g @dam-agents/cli

Requires Node ≥ 20.

Usage

dam --help
dam --version
dam update

dam update (also available as dam upgrade) updates a global npm installation to the latest stable release. It keeps the CLI's configuration and saved sign-ins.

Configuration lives at $XDG_CONFIG_HOME/dam/config.toml (default ~/.config/dam/config.toml). State and credentials live separately under $XDG_STATE_HOME/dam/ (default ~/.local/state/dam/).

Use it from your own agent

The CLI comes with a skill that teaches an agent on your machine — Claude Code, Codex, or any agent that loads skills — to drive DAM with this CLI. The agent never sees a secret: whenever DAM needs one, it gives you a command to run in your own terminal.

npx skills add https://dam.example.com -g

Replace the address with your DAM deployment's: it serves the skill that matches its server. Or install it from this repository, at the version dam --version prints, so the skill matches your CLI:

npx skills add 'dam-agents/dam/skills/dam#v0.2.24' -g

The skill ships from CLI 0.2.24 on: with an older CLI, update the CLI first.

License

Apache-2.0

版本与发布记录

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

版本发布日期距今
0.2.26latest2026/11/065 天前
0.2.26-rc.1rc2026/11/065 天前
0.2.252026/11/056 天前
0.2.25-rc22026/11/056 天前
0.2.25-rc12026/11/056 天前
0.2.242026/11/046 天前

关于 @dam-agents/cli 的常见问题

如何安装 @dam-agents/cli?

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

@dam-agents/cli 支持 TypeScript 吗?

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

@dam-agents/cli 支持 ESM 还是 CommonJS?

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

@dam-agents/cli 需要什么版本的 Node.js?

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

@dam-agents/cli 可以商用吗?

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

@dam-agents/cli 的下载量有多少?

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

@dam-agents/cli 还在维护吗?

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