CLI commands and options summary
This page only summarizes the CLI commands and the options for each command. For details, use the links in this summary to open the help docs page for the command you are using. The help docs pages are the same as the help in the CLI.
Usage
snyk [COMMAND] [SUBCOMMAND] [OPTIONS] [PACKAGE] [CONTEXT-SPECIFIC-OPTIONS]
Description
The Snyk CLI is a build-time tool to find and fix known vulnerabilities in your projects. For a more detailed description of Snyk CLI and Snyk, see Snyk CLI. For an introduction on how to use the Snyk CLI, see Getting started with the CLI.
Available CLI commands
To learn more about each Snyk CLI command, use the --help
option, for example, snyk auth --help
or snyk container --help
. Each command in this list is linked to the corresponding help page in these docs.
Note: Lists of all the options for Snyk CLI commands are on this page. The options are explained in detail in the help for each command.
Authenticate Snyk CLI with a Snyk account.
Manage Snyk CLI configuration.
Use to set your environment for the region before you run the snyk auth
command.
Test a Project for open-source vulnerabilities and license issues.
Snapshot and continuously monitor a project for open-source vulnerabilities and license issues.
Print the name of the snyk code
command with its help option: snyk code test
Test source code for any known security issues (Static Application Security Testing).
Print a list of the snyk container
commands, snyk container monitor
and snyk container test
.
Capture the container image layers and dependencies and monitor for vulnerabilities on snyk.io.
Generate an SBOM for a container image
Test container images for any known vulnerabilities.
Print a list of the snyk iac
commands: snyk iac describe
, snyk iac update-exclude-policy
, and snyk iac test
.
Test for any known security issue.
Detect, track, and alert on infrastructure drift and unmanaged resources.
Generate exclude policy rules to be used by snyk iac describe
.