CLI help
Snyk CLI scans and monitors your projects for security vulnerabilities and license issues.
For more information visit the Snyk website
For details see the CLI documentation

  1. 1.
    Authenticate by running snyk auth
  2. 2.
    Test your local project with snyk test
  3. 3.
    Get alerted for new vulnerabilities with snyk monitor

To learn more about each Snyk CLI command, use the --help option, for example, snyk auth --help.
Note: The help on the docs site is the same as the --help in the CLI.

Authenticate Snyk CLI with a Snyk account.

Test a project for open source vulnerabilities and license issues.
Note: Use snyk test --unmanaged to scan all files for known open source dependencies (C/C++ only).
Snapshot and continuously monitor a project for open source vulnerabilities and license issues.
Test container images for vulnerabilities.

Commands to find and manage security issues in Infrastructure as Code files.

Find security issues using static code analysis.
Find Log4Shell vulnerability.
Manage Snyk CLI configuration.
Display the .snyk policy for a package.
Modify the .snyk policy to ignore stated issues.

Use -d option to output the debug logs.

You can use environment variables to configure the Snyk CLI and also set variables to configure the Snyk CLI to connect with the Snyk API. See Configure the Snyk CLI
Export as PDF
Copy link
Edit on GitHub
On this page
How to get started
Available commands
snyk auth
snyk test
snyk monitor
snyk container
snyk iac
snyk code
snyk log4shell
snyk config
snyk policy
snyk ignore
Configure the Snyk CLI