@allocator-one/infraone

中文文档
1.30.1发布于 2026/11/02MITES Module近 30 天下载 3382

Infra One from the terminal: your data rooms, with exactly your app rights

原始使用文档
文档目录5 节
  1. Install
  2. Sign in
  3. Use it
  4. AI clients
  5. Exit codes

@allocator-one/infraone

The infraone CLI: what you can do in Infra One, from a terminal or a script, with exactly your app rights. It starts with your data rooms.

Install

With npm (Node 20 or later):

npm i -g @allocator-one/infraone
infraone --help

Or run it without installing:

npx -y @allocator-one/infraone --help

With Homebrew, on macOS or Linux:

brew install allocator-one/tap/infraone

As a single binary for macOS or Linux, with no Node needed. The script downloads the binary for your machine, checks its SHA-256 checksum, and installs it in ~/.local/bin (set INFRAONE_INSTALL_DIR to choose another folder):

curl -fsSL https://github.com/allocator-one/homebrew-tap/releases/latest/download/install.sh | sh

Sign in

infraone login
infraone whoami

infraone login opens Infra One in your browser. You choose the organization there, and the CLI stores a credential for it that lasts 30 days. Every command then acts as you, in that organization, with the rights you have in the app. Signing in covers other organizations, scripts and signing out, and personal tokens are the credential to give a script.

Use it

infraone datarooms spaces list
infraone datarooms spaces list --type personal --json

The commands come from the Infra One API, so infraone --help always lists what the server offers, including commands added after this release. Every command takes --json. Lists page with --limit and --cursor, and --all follows every page. The command reference lists the commands this release knows about, and the app pages show each app's commands and MCP tools, the scopes they need, the ones that ask you to confirm, and what stays in the app. Both are generated at release from the API's spec and ship in the npm package.

Deleting, revoking access, sharing outside Infra One and emailing people ask you to confirm first; confirmations explains how.

AI clients

Connect Claude, or any MCP client, to the hosted Infra One MCP at https://mcp.infra.one/mcp. Infra One MCP shows how.

Exit codes

CodeMeaning
0Done
1The API refused or failed the request
2The command line was wrong, or a confirmation was missing; nothing was sent
3The API could not be reached

stdout carries data only; messages go to stderr.

版本与发布记录

@allocator-one/infraone 共发布 19 个版本,首次发布于 2026/10/26;过去 12 个月发布了 19 个版本。

版本发布日期距今
1.30.1latest2026/11/025 天前
1.30.02026/11/016 天前
1.29.02026/11/017 天前
1.28.02026/10/317 天前
1.27.02026/10/317 天前
1.26.02026/10/317 天前

关于 @allocator-one/infraone 的常见问题

@allocator-one/infraone 是什么?

Infra One from the terminal: your data rooms, with exactly your app rights

如何安装 @allocator-one/infraone?

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

@allocator-one/infraone 支持 TypeScript 吗?

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

@allocator-one/infraone 支持 ESM 还是 CommonJS?

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

@allocator-one/infraone 需要什么版本的 Node.js?

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

@allocator-one/infraone 可以商用吗?

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

@allocator-one/infraone 的下载量有多少?

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

@allocator-one/infraone 还在维护吗?

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