For the complete documentation index, see llms.txt. This page is also available as Markdown.

Secrets scanning in the Snyk CLI

Scan codebases for exposed secrets with the Snyk CLI.

To use Snyk Secrets in the CLI, consider these system parameters:

  • Maximum file size: 1 MB

  • Maximum repository or bundle size: 2 GB

  • Maximum number of files in a repository or bundle: 300,000

  • Maximum file path length: 256 characters

Scan your codebase for hard-coded secrets, including API keys and passwords. Use the snyk secrets test command to run a secrets scan from the command line.

Command reference

Review the comamnd syntax, options, and exit codes.

Scan guidance

Learn how to scan for secrets using the Snyk CLI.

Last updated

Was this helpful?