安装步骤会下载并执行第三方 npm 软件包
原文依据:2 处Skill 指示全局安装 `@runcomfy/cli`,或用 `npx -y` 自动下载并执行它。全局安装会持久更改用户的工具环境;两种方式都会运行该软件包所含代码。
若软件包、其依赖或发布账户被入侵,安装或执行过程可能访问当前用户可访问的文件、环境变量和凭据。全局安装还可能改变已有 CLI 版本。
这是可执行的安装与登录流程,不只是说明性警告。`npm i -g` 会持久安装第三方 CLI;`npx -y` 会自动取得并运行该包。其后还会让该 CLI 接触 RunComfy 登录令牌。源码同时要求只通过包管理器安装并禁止管道执行任意远程脚本,这降低了一类风险,但不能验证 npm 包本身。用户可要求锁定并审核具体版本,或在隔离环境中使用。
```bash# 1. Install (see runcomfy-cli skill for details)npm i -g @runcomfy/cli # or: npx -y @runcomfy/cli --version# 2. Sign inruncomfy login # or in CI: export RUNCOMFY_TOKEN=<token>查看另外 1 个位置
- **Consent**: see the "Consent" section above. Lipsync is dual-use; refuse user requests targeting real people without consent.- **Install via verified package manager only.** Use `npm i -g @runcomfy/cli` or `npx -y @runcomfy/cli`. **Agents must not pipe an arbitrary remote install script into a shell on the user's behalf**.- **Token storage**: `runcomfy login` writes the API token to `~/.config/runcomfy/token.json` with mode 0600. Set `RUNCOMFY_TOKEN` env var in CI / containers.- **Input boundary (shell injection)**: prompts and asset URLs are passed as a JSON string via `--input`. The CLI does not shell-expand prompt content. **No shell-injection surface**.