2025-03-14 21:59:59 -06:00
|
|
|
# snyk
|
|
|
|
|
|
|
|
|
|
> Find vulnerabilities in your code and remediate risks.
|
2025-05-08 12:26:01 -06:00
|
|
|
> More information: <https://docs.snyk.io/snyk-cli/commands>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Log in to your Snyk account:
|
|
|
|
|
|
|
|
|
|
`snyk auth`
|
|
|
|
|
|
|
|
|
|
- Test your code for any known vulnerabilities:
|
|
|
|
|
|
|
|
|
|
`snyk test`
|
|
|
|
|
|
|
|
|
|
- Test a local Docker image for any known vulnerabilities:
|
|
|
|
|
|
|
|
|
|
`snyk test --docker {{docker_image}}`
|
|
|
|
|
|
|
|
|
|
- Record the state of dependencies and any vulnerabilities on snyk.io:
|
|
|
|
|
|
|
|
|
|
`snyk monitor`
|
|
|
|
|
|
|
|
|
|
- Auto patch and ignore vulnerabilities:
|
|
|
|
|
|
|
|
|
|
`snyk wizard`
|