@capawesome/cli

中文文档
4.27.4发布于 2026/11/06MITES Module构建来源已验证近 30 天下载 6.6万

The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.

原始使用文档
文档目录9 节
  1. Installation
  2. Usage
  3. Help
  4. Telemetry
  5. Development
  6. Getting Started
  7. Testing Proxy Support
  8. Changelog
  9. License

cli

npm version npm downloads license

💻 The Capawesome Cloud Command Line Interface (CLI) can be used to manage Live Updates from the command line.

Installation

The Capawesome Cloud CLI can be installed globally via npm:

npm install -g @capawesome/cli

Usage

The Capawesome Cloud CLI can be invoked with the @capawesome/cli command.

npx @capawesome/cli <command> [options]

You can find a list of available commands in the Command Reference.

Help

The Capawesome Cloud CLI ships with command documentation that is accessible with the --help flag.

npx @capawesome/cli --help

Telemetry

The Capawesome Cloud CLI sends crash reports to help us identify and fix bugs. No usage analytics are collected.

To opt out, set the following environment variable:

export CAPAWESOME_TELEMETRY_DISABLED=1

Learn more in the Telemetry documentation.

Development

Getting Started

Run the following commands to get started with development:

  1. Clone the repository:

    git clone https://github.com/capawesome-team/cli.git
    
  2. Install dependencies:

    npm install
    
  3. Optional: copy .env.example to .env to point the CLI at another API, console or environment (CAPAWESOME_API_BASE_URL, CAPAWESOME_CONSOLE_BASE_URL, CAPAWESOME_ENVIRONMENT). npm start loads it (Node.js 20.19 or newer).

  4. Run your first command:

    npm start -- --help
    

    Note: The -- is required to pass arguments to the script.

Testing Proxy Support

To test HTTP/HTTPS proxy functionality locally:

  1. Start Squid proxy in a separate terminal:

    docker run --rm --name squid-proxy -p 3128:3128 -v $(pwd)/squid.conf:/etc/squid/squid.conf:ro sameersbn/squid:latest
    
  2. Set proxy environment variables and run the CLI:

    export https_proxy=http://localhost:3128
    npm run build && node ./dist/index.js login
    
  3. To see debug output:

    DEBUG=https-proxy-agent node ./dist/index.js login
    

Changelog

See CHANGELOG.

License

See LICENSE.

版本与发布记录

@capawesome/cli 共发布 180 个版本,首次发布于 2024/04/25;过去 12 个月发布了 90 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
4.27.4latest2026/11/063 天前
4.27.32026/11/026 天前
4.27.22026/10/2713 天前
4.27.12026/10/2119 天前
4.27.02026/10/091 个月前
4.26.12026/10/071 个月前

其他发布通道:dev → 4.18.0-dev.9810ff51.1785743282。

关于 @capawesome/cli 的常见问题

@capawesome/cli 是什么?

The Capawesome Cloud Command Line Interface (CLI) to manage Live Updates and more.

如何安装 @capawesome/cli?

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

@capawesome/cli 支持 TypeScript 吗?

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

@capawesome/cli 支持 ESM 还是 CommonJS?

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

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

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

@capawesome/cli 可以商用吗?

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

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

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

@capawesome/cli 还在维护吗?

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