browse
snyk/

Snyk CLI

Snyk

Developer security CLI for finding and fixing vulnerabilities in code, dependencies, and containers.

Security & IdentityJSON
01Agent Notes

snyk scans for vulnerabilities. `snyk test` for dependencies, `snyk container test` for images, `snyk iac test` for IaC. Always pass `--json` for machine output. Exit codes: 0=no vulns, 1=vulns found, 2=error. Use `--severity-threshold=high` to filter. `snyk monitor` to upload results to Snyk dashboard for ongoing monitoring.


02Global Flags
FlagTypeDescription
--jsonbooleanOutput results as JSON
--severity-thresholdenum [low, medium, high, critical]Minimum severity level to report
--orgstringSnyk organization to use
--all-projectsbooleanDetect and scan all projects in the working directory

03Authentication
Methods
access-tokenenvironment-variables
Env vars
SNYK_TOKENSNYK_ORG
Setupsnyk auth

04Install
brew install snyk
Download binary →

05Capabilities
Reference
binarysnyk
checksnyk --version
authaccess-token, environment-variables
formatstext
json flag--json
version1.1303.1