@featurevisor/cli

中文文档
4.4.0发布于 2026/11/01MITTypeScriptCommonJS构建来源已验证

Command line tool to lint, test and build Featurevisor projects

原始使用文档
文档目录3 节
  1. Create a project
  2. Add to an existing project
  3. License

@featurevisor/cli

Lint, test and build Featurevisor projects from the command line. Requires Node.js 24 or later.

Create a project

Create a project in an empty directory, then check and build it:

mkdir my-project && cd my-project
npx @featurevisor/cli@latest init
npm install
npx featurevisor lint
npx featurevisor test
npx featurevisor build

Use npx @featurevisor/cli@latest before the CLI is installed. The @latest tag makes npx fetch the current release instead of reusing an older version from its cache. After npm install, the project provides the featurevisor executable used by npx featurevisor.

Add to an existing project

Install the CLI in a project that already has its Featurevisor definitions and configuration:

npm install --save-dev @featurevisor/cli

Do not run init after this step. Initialization expects an empty directory and will not overwrite an existing package.json.

See the documentation.

License

MIT © Fahad Heylaal

版本与发布记录

@featurevisor/cli 共发布 246 个版本,首次发布于 2023/03/06;过去 12 个月发布了 45 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.4.0latest2026/11/012 天前
4.3.02026/10/277 天前
4.1.02026/10/2410 天前
4.0.12026/10/2014 天前
4.0.02026/10/1915 天前
3.11.02026/09/091 个月前

关于 @featurevisor/cli 的常见问题

@featurevisor/cli 是什么?

命令行工具来检测、测试和构建Featurevisor项目

如何安装 @featurevisor/cli?

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

@featurevisor/cli 支持 TypeScript 吗?

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

@featurevisor/cli 支持 ESM 还是 CommonJS?

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

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

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

@featurevisor/cli 可以商用吗?

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

@featurevisor/cli 还在维护吗?

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