@agentium/cli

中文文档
4.11.0发布于 2026/10/24MITTypeScriptESM + CJS近 30 天下载 1855

Command-line tool for scaffolding and managing Agentium projects

原始使用文档
文档目录9 节
  1. Install
  2. Commands
  3. agentium init <name>
  4. agentium dev
  5. agentium skills install <source>
  6. agentium publish
  7. Documentation
  8. Community
  9. License

@agentium/cli

Command-line tool for scaffolding and managing Agentium projects.

Install

npm install -g @agentium/cli

Or run on demand without installing:

npx @agentium/cli init my-app

Commands

agentium init <name>

Scaffold a new Agentium project. Aliases: new, create.

agentium init my-app --template basic
agentium init voice-app --template voice
agentium init rag-app --template rag
agentium init browser-app --template browser

Requires Node 22.18+ (22.x) or 24.11+ (24.x). Names must be lowercase npm names without scopes or paths. Existing destinations are refused before writing. Generated projects use the CLI release range, bounded optional SDK ranges, and include typecheck and setup instructions. Set OPENAI_API_KEY in your shell and OPENAI_MODEL for text/browser examples. Browser projects also need npx playwright install chromium.

Templates:

TemplateWhat you get
basicOne Agent request with resource cleanup
ragIn-memory vector retrieval passed as evidence to an Agent
voiceConfigured VoiceAgent with an OpenAI Realtime provider; supply your own media transport
browserBrowserAgent with Playwright

agentium dev

Run an Agentium app in dev mode with hot reload.

agentium dev --entry ./src/index.ts

agentium skills install <source>

Install an npm/Git package using npm with install scripts disabled, or validate a local directory containing SKILL.md (or the file itself). Register the package tools or skill directory explicitly in your application or harness configuration. This command does not create a runtime manifest or attach skills automatically.

agentium skills install github:agentiumOS/skill-gmail
agentium skills install @some-org/skill-pagerduty
agentium skills install ./local-skill

agentium publish

Convenience wrapper around npm publish --access public — useful inside an Agentium monorepo where you want one command to run from any package directory.

Documentation

Full docs at docs.agentium.in

Community

Join the conversation on Discord.

License

MIT

版本与发布记录

@agentium/cli 共发布 39 个版本,首次发布于 2026/05/23;过去 12 个月发布了 39 个版本。

版本发布日期距今
4.11.0latest2026/10/2415 天前
4.10.02026/10/2415 天前
4.9.02026/10/1326 天前
4.8.32026/10/1227 天前
4.8.22026/10/1029 天前
4.8.12026/10/1029 天前

关于 @agentium/cli 的常见问题

@agentium/cli 是什么?

Command-line tool for scaffolding and managing Agentium projects

如何安装 @agentium/cli?

在项目目录运行 npm install @agentium/cli,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@agentium/core(^4.11.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。它还提供命令行工具 agentium,可以用 npx agentium 直接运行。

@agentium/cli 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@agentium/cli 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

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

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

@agentium/cli 可以商用吗?

@agentium/cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

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

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

@agentium/cli 还在维护吗?

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