@alwaysmeticulous/cli

中文文档
3.6.0发布于 2026/11/06ISCTypeScriptCommonJS零依赖构建来源已验证近 30 天下载 45.6万

The Meticulous CLI

原始使用文档
文档目录11 节
  1. What is Meticulous?
  2. Installation
  3. Quick Start
  4. 1. Record a Session
  5. 2. Simulate a Session
  6. 3. Run in CI
  7. CLI Commands
  8. Configuration
  9. Documentation
  10. Requirements
  11. Support

Meticulous CLI

npm version npm downloads License: ISC Node.js Version

The official command-line interface for Meticulous - automated end-to-end testing that eliminates test maintenance. See the documentation for more details.

What is Meticulous?

Meticulous automatically creates and maintains a comprehensive test suite for your web application by recording real user interactions. When you open a pull request, Meticulous replays these user sessions against both the old and new versions of your app, identifying visual and functional differences.

Key Benefits:

  • Zero maintenance tests that evolve with your app
  • Scale to thousands of tests without writing code
  • Catch regressions before they reach production
  • Test real user flows, not assumptions

Installation

npm install --save-dev @alwaysmeticulous/cli

Quick Start

To install Meticulous in an application repository, connect the repository to a Meticulous project first, then run:

npx @alwaysmeticulous/cli onboard --project="<ORGANIZATION>/<PROJECT>"

If you are not logged in, onboard opens a browser to sign in. On a remote machine, run npx @alwaysmeticulous/cli auth login --device first.

onboard uses your local Claude Code or Codex account to prepare a pull request with the recorder and CI configuration. See the Onboarding Guide for GitHub, GitLab, and Bitbucket connection instructions and the manual alternative.

Sessions are recordings of user interactions with your application that Meticulous can replay to test for regressions.

1. Record a Session

Record a new session by interacting with your application:

npx @alwaysmeticulous/cli record \
  --apiToken="<API_TOKEN>" \
  --appUrl="http://localhost:3000"

Note: --apiToken is only required if the token is not stored in ~/.meticulous/config.json.

2. Simulate a Session

Simulate a recorded session on your local environment:

npx @alwaysmeticulous/cli simulate \
  --apiToken="<API_TOKEN>" \
  --sessionId="<SESSION_ID>" \
  --appUrl="http://localhost:3000"

3. Run in CI

Add Meticulous to your CI pipeline to automatically test every pull request. See the documentation for detailed CI setup instructions.

CLI Commands

Run npx @alwaysmeticulous/cli --help to see all available commands.

Common commands:

  • onboard - Install the recorder and CI configuration using Claude Code or Codex
  • record - Record a new session
  • simulate - Simulate a recorded session locally
  • run-all-tests - Run all replay test cases
  • Additional commands available via --help

Configuration

The CLI can be configured using command-line flags or environment variables:

  • --apiToken / METICULOUS_API_TOKEN - Your Meticulous API token
  • --appUrl / METICULOUS_APP_URL - URL where your app is running
  • --sessionId - Specific session ID to replay (for simulate command)

Documentation

Requirements

  • Node.js >= 12

Support

版本与发布记录

@alwaysmeticulous/cli 共发布 603 个版本,首次发布于 2022/02/09;过去 12 个月发布了 179 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.6.0latest2026/11/06今天
3.5.02026/11/051 天前
3.4.02026/10/297 天前
3.2.02026/10/2214 天前
3.1.02026/10/2215 天前
3.0.02026/10/1620 天前

其他发布通道:next → 2.226.1-beta.0。

关于 @alwaysmeticulous/cli 的常见问题

@alwaysmeticulous/cli 是什么?

The Meticulous CLI

如何安装 @alwaysmeticulous/cli?

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

@alwaysmeticulous/cli 支持 TypeScript 吗?

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

@alwaysmeticulous/cli 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

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

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

@alwaysmeticulous/cli 可以商用吗?

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

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

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

@alwaysmeticulous/cli 还在维护吗?

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