@alea-design/cli

中文文档
0.7.1发布于 2026/11/06MITES Module零依赖近 30 天下载 1712

Copy Alea components into your project: alea init, add, list.

原始使用文档

@alea-design/cli

Copy Alea components into your project and own the source.

npx @alea-design/cli init
npx @alea-design/cli add button select dialog
ALEA_LICENSE_KEY=... npx @alea-design/cli add data-grid   # Alea Pro

The same commands with the other package managers (the package has one command, alea, so the package name is enough):

ManagerRun the CLI
npmnpx @alea-design/cli init
pnpmpnpm dlx @alea-design/cli init
Yarn 2 or lateryarn dlx @alea-design/cli init
Bunbunx @alea-design/cli init
Denodeno run -A npm:@alea-design/cli init

Replace init with add button select, list or any other command. init and add install the peers with the manager of the project: they look for pnpm-lock.yaml, yarn.lock, bun.lock or bun.lockb, and deno.lock (or a deno.json without a package.json), and use npm otherwise; in a Deno project they run deno add npm:....

init installs the peers the components need, pinned to the ranges @alea-design/ui depends on (react-aria-components, lucide-react@^0.525.0, @alea-design/motion); with --no-install it prints the command instead. The copied components type-check with React 18 and React 19 types.

alea audit runs the quality audit of @alea-design/audit (alea audit init, alea audit list, alea audit --shard 1/3). The CLI does not depend on it or on Playwright: it finds the package in your project and tells you what to install when it is missing.

Docs: https://alea.alevasquez.dev/installation?utm_source=npm&utm_medium=readme&utm_campaign=alea-cli · MIT license

版本与发布记录

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

版本发布日期距今
0.7.1latest2026/11/063 天前
0.7.02026/11/054 天前
0.6.12026/11/055 天前
0.6.02026/11/045 天前
0.5.12026/11/037 天前
0.5.02026/11/027 天前

关于 @alea-design/cli 的常见问题

@alea-design/cli 是什么?

Copy Alea components into your project: alea init, add, list.

如何安装 @alea-design/cli?

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

@alea-design/cli 支持 TypeScript 吗?

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

@alea-design/cli 支持 ESM 还是 CommonJS?

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

@alea-design/cli 可以商用吗?

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

@alea-design/cli 的下载量有多少?

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

@alea-design/cli 还在维护吗?

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