@cori-do/cli

中文文档
0.10.0发布于 2026/11/08MIT零依赖近 30 天下载 2200

The cori command line (init, workflow new, check, run, deploy, login, up…) as a prebuilt binary for macOS and Linux: npm install -g @cori-do/cli, or npx @cori-do/cli in a sandbox or CI, with no Rust toolchain.

原始使用文档
文档目录4 节
  1. What it installs
  2. Versions
  3. Licence
  4. Releasing

@cori-do/cli

The cori command line: create, check, run and deploy Cori apps from a terminal, a coding agent or CI. It is a prebuilt binary for macOS and Linux (arm64 and x64): no Rust toolchain needed.

npm install -g @cori-do/cli      # or: pnpm add -g @cori-do/cli, bun add -g @cori-do/cli
cori login https://<your Cori server>
cori init my-app

Without installing it (a sandbox, CI): npx @cori-do/cli <command>. In Claude Cowork's sandbox, npm is reachable by default; the Cori server must be too (Organization settings › Capabilities › Code execution › Additional allowed domains).

What it installs

Two packages: this one, a small launcher (bin/cori.js), and the binary for your platform, @cori-do/cli-<os>-<cpu> (darwin-arm64, darwin-x64, linux-arm64, linux-x64), which npm picks among this package's optional dependencies by its os and cpu. Nothing comes from anywhere but npm and no install script runs, so it installs where scripts are off (--ignore-scripts, pnpm, bun) and wherever npm is allowed through.

  • The Linux binaries are static (musl): any distribution, Alpine included.
  • Windows: install it in WSL.
  • Installed with --omit=optional (or --no-optional), the binary is missing, and the launcher says so.
  • CORI_CLI_BINARY runs another binary instead (one you built: cargo install --path crates/cori-cli).

Versions

A Cori server names the oldest command line it serves. An older one prints a warning with the upgrade command, and cori doctor shows both versions.

Licence

MIT. The binary includes open source software, listed with its licences in THIRD-PARTY-NOTICES.md.

Releasing

A tag v<version> (the workspace's version in Cargo.toml, which this package.json repeats) runs the release-cli workflow: the four binaries, the packages (pack.mjs, with scripts/cli-notices.sh), then the platforms' packages published, and this one last. Started by hand, the workflow is a dry run. test.sh checks the packages as npm, pnpm and bun install them.

版本与发布记录

@cori-do/cli 共发布 13 个版本,首次发布于 2026/10/12;过去 12 个月发布了 13 个版本。

版本发布日期距今
0.10.0latest2026/11/083 天前
0.9.02026/11/047 天前
0.8.02026/11/038 天前
0.7.02026/11/0110 天前
0.6.02026/10/3111 天前
0.5.12026/10/2913 天前

关于 @cori-do/cli 的常见问题

@cori-do/cli 是什么?

The cori command line (init, workflow new, check, run, deploy, login, up…) as a prebuilt binary for macOS and Linux: npm install -g @cori-do/cli, or npx @cori-do/cli in a sandbox or CI, with no Rust toolchain.

如何安装 @cori-do/cli?

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

@cori-do/cli 支持 TypeScript 吗?

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

@cori-do/cli 需要什么版本的 Node.js?

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

@cori-do/cli 可以商用吗?

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

@cori-do/cli 的下载量有多少?

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

@cori-do/cli 还在维护吗?

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