cd ~/projects/myproj/) and run
$ snyk test.
snyk testcommand identifies all the local dependencies and queries the Snyk service for known vulnerabilities.
snyk testdisplays the issues found along with additional information. For Node.js, Ruby, and Java projects,
snyk testalso suggests steps to fix.
snyk testruns, it tries to autodetect your project type by looking for the following files and analyzing the first of the files that it finds. To analyze multiple manifest files see Monorepos and projects with multiple manifest files on this page. Files that Snyk uses to autodetect the project type include, but are not limited to, the following:
--fileoption. To identify all of the files, use the
--all-projectsoption, for example:
$ snyk test --file=package.json;
$ snyk test --all-projects
$ snyk test --file=req.txt --package-manager=pip
$ snyk test --dev