# 使用 Homebrew, Nix, winget 安装 snyk-cli

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install snyk-cli
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#snyk
```

  证据: nixpkgs package indexes: pkgs/by-name/sn/snyk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id Snyk.Snyk -e
```

  证据: Windows Package Manager source index: Snyk.Snyk from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:snyk-cli
- **软件包管理器:** Homebrew
- **版本:** 1.1306.2
- **来源摘要:** Scans and monitors projects for security vulnerabilities
- **主页:** <https://snyk.io>
- **最后更新:** 2026-07-28T16:04:03Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- snyk (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Snyk CLI is the `snyk` command-line client for bringing Snyk's vulnerability scanning and monitoring into local development, IDEs, and CI/CD pipelines. In package-manager culture it is a canonical security scanner package: install it globally, authenticate it, run it against dependency manifests, source code, container images, and IaC files, then wire it into automation.

### 项目历史

The public GitHub repository was created in 2015 and the official README describes the CLI as a developer-first, cloud-native security tool for scanning and monitoring software projects. Snyk's docs position it as the command-line entry point for Open Source, Code, Container, and IaC scanning.

The README records an important governance change on July 22, 2024: Snyk CLI stopped accepting external contributions while continuing development in public. It also says release channels were introduced in April 2024 as Snyk focused on stabilizing releases.

### 采用历史

Official installation docs list package managers such as npm, Homebrew, and Scoop, plus Docker and standalone binaries. The input records Homebrew, Nix, and WinGet packages, matching the CLI's role across macOS, Linux, Windows, and CI systems.

### 使用方式

Users authenticate a machine, then run commands such as `snyk test`, `snyk monitor`, `snyk code test`, `snyk container test`, and `snyk iac test`. The CLI detects supported project manifests, reports vulnerability paths and fix guidance, and can create monitored snapshots in Snyk's web UI.

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

Package nerds care because Snyk CLI sits directly on package-manager metadata: manifests, lockfiles, dependency graphs, container images, IaC files, global npm/Homebrew/Scoop installs, signed release assets, and machine-local credentials. It is a package that audits other packages.

### 时间线

- 2015: Public GitHub repository created.
- 2023: GitHub releases show the v1.1249 series in the public release stream.
- 2024: Release channels introduced in April, according to the README.
- 2024: External contributions closed on July 22, according to the README.
- 2026: GitHub releases show the v1.1305 series in the active release stream.

### Related projects

- Related Snyk tools include Snyk Open Source, Snyk Code, Snyk Container, Snyk IaC, Snyk IDE plugins, Snyk CI/CD integrations, and Snyk CLI extensions.

### 来源

- <https://docs.snyk.io/developer-tools/snyk-cli>
- <https://docs.snyk.io/developer-tools/snyk-cli/snyk-cli/install-the-snyk-cli>
- <https://docs.snyk.io/developer-tools/snyk-cli/snyk-cli/releases-and-channels-for-the-snyk-cli>
- <https://github.com/snyk/cli>
- <https://github.com/snyk/cli/releases>


## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.config/configstore/snyk.json

## Credential files

- Unix: ~/.config/configstore/snyk.json
## 其他软件包管理器记录

- Nix - snyk: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/sn/snyk/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- winget - Snyk.Snyk: installed executable or alias match | Windows Package Manager source index: Snyk.Snyk from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

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


## 来源

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