# 使用 Homebrew, scoop, winget 安装 opensca-cli

查看 opensca-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:opensca-cli
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install opensca-cli
```

  证据: local Homebrew formula metadata

### Windows

- Scoop (92%):

```sh
scoop install extras/opensca-cli
```

  证据: Scoop official bucket manifest trees: bucket/opensca-cli.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id XmirrorSecurity.OpenSCA-cli -e
```

  证据: Windows Package Manager source index: XmirrorSecurity.OpenSCA-cli from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:opensca-cli
- **软件包管理器:** Homebrew
- **版本:** 3.0.11
- **来源摘要:** OpenSCA is a supply-chain security tool for security researchers and developers
- **主页:** <https://opensca.xmirror.cn>
- **仓库:** <https://github.com/XmirrorSecurity/OpenSCA-cli>
- **最后更新:** 2026-07-27T23:46:52+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- opensca-cli (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 3.0.11
## 项目历史与用法

OpenSCA CLI is a Go-based software-composition-analysis command line tool from XmirrorSecurity. It scans project dependency manifests for third-party components, vulnerabilities, license issues, and SBOM-oriented inventory data, putting it in the practical DevSecOps family of tools alongside package scanners and bill-of-material generators.

### 项目历史

The public GitHub repository was created on December 30, 2021. Its README describes the project as an open source way to govern open source risk, and the English README frames the CLI as a scanner for third-party dependencies, vulnerabilities, and licenses.

The 3.x series moved more configuration into config files and added SaaS synchronization support through project tokens, showing an evolution from a local scanner into a tool that can feed centralized asset and risk management workflows.

### 使用方式

Developers run `opensca-cli` against a source tree with `-path`, optionally point it at a config file, and emit reports by suffix. Supported report outputs include JSON, XML, HTML, SQLite, CSV, SARIF, and SBOM formats such as SPDX, CycloneDX, SWID, and DSDX.

The scanner parses common package-manager files across Java, JavaScript, PHP, Ruby, Go, Rust, Erlang, and Python ecosystems. It can be installed from GitHub releases, an install script, Homebrew, source builds, or Docker, which makes it useful in local terminals and CI jobs.

### 为什么软件包爱好者会关心

For package metadata work, OpenSCA CLI is interesting because it treats manifests, package-manager lockfiles, vulnerability databases, and SBOM export formats as first-class inputs and outputs. It is a small but concrete example of the post-Log4Shell package-security tooling wave becoming installable as a normal CLI formula.

### 时间线

- 2021-12-30: The GitHub repository for XmirrorSecurity/OpenSCA-cli was created.
- 2025-2026: The v3.0.x release line added and refined report, ignore, cloud database, and SaaS synchronization behavior documented in the README and release metadata.

### Related projects

- OpenSCA CLI sits near SBOM and SCA tools that emit SPDX, CycloneDX, SWID, SARIF, and other interchange formats. The project also links to Docker Hub and editor integrations, indicating a tooling surface beyond the single `opensca-cli` executable.

### 来源

- <https://api.github.com/repos/XmirrorSecurity/OpenSCA-cli>
- <https://api.github.com/repos/XmirrorSecurity/OpenSCA-cli/releases?per_page=5>
- <https://formulae.brew.sh/api/formula/opensca-cli.json>
- <https://formulae.brew.sh/formula/opensca-cli>
- <https://github.com/XmirrorSecurity/OpenSCA-cli>
- <https://raw.githubusercontent.com/XmirrorSecurity/OpenSCA-cli/master/.github/README.md>


## 安全说明

没有找到 opensca-cli 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 其他软件包管理器记录

- Scoop - extras/opensca-cli: normalized package name match | Scoop official bucket manifest trees: bucket/opensca-cli.json from https://api.github.com/repos/ScoopInstaller/Extras/git/trees/master?recursive=1
- winget - XmirrorSecurity.OpenSCA-cli: normalized package name match | Windows Package Manager source index: XmirrorSecurity.OpenSCA-cli from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/opensca-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/opensca-cli.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
