Comment on page
Snyk CLI for Snyk Code
The Snyk Command Line Interface (CLI) enables you to bring the functionality of Snyk Code into your development workflow. Using the Snyk CLI, you can run Snyk Code tests locally or incorporate them into your CI/CD pipeline to scan your source code for security vulnerabilities.
Before using the Snyk CLI for testing your source code with Snyk Code, verify you have the following prerequisites:
- Repositories with code in a supported language and framework. For more information, see Snyk Code - Supported languages and frameworks.
- The Snyk CLI installed and authenticated.
- The minimum Snyk CLI version for Snyk Code, version 1.716.0. Snyk recommends using the latest version of the CLI.
To test your repository code using the Snyk CLI, use the
snyk code test
command.
For more information, see Testing your source code via the CLI.Before running Snyk Code tests with the CLI, you may want to do the following:
After running a Snyk Code test, you can do the following: