The Snyk CLI scans local projects for security issues in dependencies, application code, containers, and infrastructure-as-code. It runs from the terminal, in IDEs, or in CI pipelines after authentication.
Overview
Snyk CLI brings Snyk’s security scanning into everyday development workflows. It supports open-source dependency testing, static analysis for application code, container image checks, and IaC configuration review for Terraform and Kubernetes manifests.
After installation and account authentication, you run scans against project directories that contain supported manifest files, or invoke dedicated subcommands for code, containers, and IaC paths. Reports list severities, issue paths, and remediation guidance. JSON output and severity thresholds are available for automation.
The CLI integrates with IDEs and CI/CD systems and can monitor open-source or container projects on a schedule via monitor commands, creating snapshots visible in the Snyk web UI. An experimental agent mode combines open-source, code, and secrets scans for AI coding agents.
Many languages and package ecosystems are supported for open-source and code scans, with separate compatibility lists for containers and IaC. Some open-source projects must be built before testing, and package managers like Gradle or Maven must be available on the PATH when required.
Key features
- Open-source dependency vulnerability tests
- Application code security scans
- Container image scanning
- Terraform and Kubernetes IaC tests
- CI and IDE workflow integration
- Project monitoring snapshots
- JSON and severity threshold output
- Experimental unified agent scan mode
Use cases
- Local dependency audit before release
- Pipeline gate on vulnerability severity
- Container image security checks
- IaC misconfiguration detection
- Ongoing monitored dependency alerts