@mutmutco/hub

中文文档
4.6.9发布于 2026/11/02UNLICENSEDES Module零依赖

Install and maintain the MMI CLI and every present host surface from one release-gated Hub command.

原始使用文档

@mutmutco/hub

mmi-hub is the public MMI maintenance command. It converges the current CLI and every host surface present on the machine through the release-gated Hub bill of materials, and owns the one hourly schedule that keeps them current.

Published from mutmutco/MMI-Hub.

Install

npm install -g @mutmutco/hub
mmi-hub install

install converges immediately, then enables hourly automatic updates by default.

Commands

mmi-hub status              what is installed, whether auto-update is on, anything to fix (default)
mmi-hub install             update everything now, then turn on hourly auto-update
mmi-hub update              update everything to the newest release now (--dry-run previews)
mmi-hub autoupdate on|off   turn hourly auto-update on or off; off keeps installed tools

Flags: --json (machine output), --dry-run, --verbose, --quiet, --no-color, --version, --help.

status and the no-argument command are read-only. They never install, heal, create state, change the schedule, or clean a repository.

Every screen is drawn by the shared installer face (@mutmutco/installer-face), so status, update and the rest use one layout and one set of words. Glyphs and colour appear only on an interactive terminal (NO_COLOR and --no-color respected); piped, the same screen prints as plain text:

mmi-hub - Mutatis Mutandis
Here's where things stand.
updater 3.1.1 - already current
cli 3.1.0 -> 3.1.1 - update available
auto-update on - hourly
mmi-hub has an update available.
Latest release: 3.1.1.
Next: mmi-hub update
  • update/install print one row per surface (plus the launcher row that keeps the one-line installer current), then a closing box with the verdict and one command.
  • autoupdate on|off prints one line: Auto-update is on. mmi-hub checks for updates every hour. or Auto-update is off. Installed tools were kept.
  • Refusals (unknown command, a failed step) go to stderr as Error: <sentence> with the command to run next.
  • --json keeps its machine shapes; --version piped prints the bare version.

State remains under ~/.mmi/updater (override with $MMI_UPDATER_HOME) so existing journals and the MMI Fleet Updater Windows task continue in place.

@mutmutco/[email protected] was the final historical compatibility release and remains installable for existing lockfiles. Its mmi-updater wrapper delegates to the exact-version @mutmutco/hub: old reconcile/run, install, uninstall, and verify/stamp calls map to mmi-hub update, install, autoupdate off, and status respectively. New installs and all releases after 3.137.0 use only @mutmutco/hub / mmi-hub.

版本与发布记录

@mutmutco/hub 共发布 398 个版本,首次发布于 2026/08/15;过去 12 个月发布了 398 个版本。

版本发布日期距今
4.6.9latest2026/11/021 天前
4.6.82026/11/021 天前
4.6.72026/11/021 天前
4.6.62026/11/011 天前
4.6.52026/11/011 天前
4.6.42026/11/012 天前

关于 @mutmutco/hub 的常见问题

@mutmutco/hub 是什么?

安装和维护MMI CLI和每个现有的主机界面,从一个释放门控集线器命令。

如何安装 @mutmutco/hub?

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

@mutmutco/hub 支持 TypeScript 吗?

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

@mutmutco/hub 支持 ESM 还是 CommonJS?

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

@mutmutco/hub 需要什么版本的 Node.js?

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

@mutmutco/hub 可以商用吗?

@mutmutco/hub 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

@mutmutco/hub 还在维护吗?

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