Using Snyk Code via the CLI
Make sure Snyk Code is enabled for your organization, see Getting started with Snyk Code for details.
The Snyk Command Line Interface (CLI) for Snyk Code helps you find and fix security flaws in your code on your local machine.
To use the CLI you must first install it and then authenticate.

Test a project or folder

To test the current folder, run snyk code test with no parameters.
To test another context, run snyk code test <my-folder-path> with a path to a file or folder as the parameter.
All sub-folders inside the specified folder are also scanned.

"Not supported" message

Snyk Code is not supported for org
A minimum version of 1.716.0 is required to use CLI for Snyk Code.
Export as PDF
Copy link
Edit on GitHub