Support
API docs
Product updates
Sign up for free
Ask or search…
⌃
K
Links
User Docs
Getting started
Integrate with Snyk
Scan using Snyk
Manage risk
Enterprise setup
Snyk admin
Snyk CLI
Getting started with the Snyk CLI
Security concept of operations for Snyk
Code execution warning for Snyk CLI
Scan and maintain Projects using the CLI
CLI commands and options summary
CLI help
Auth
Code
Code test
Config
Container
Container monitor
Container SBOM
Container test
IaC
IaC test
IaC capture
IaC describe
IaC rules init
IaC rules test
IaC rules push
IaC update-exclude-policy
Ignore
Log4shell
Monitor
Policy
SBOM
Test
Install or update the Snyk CLI
Authenticate the CLI with your account
Configure the Snyk CLI
Snyk API
More info
Powered By
GitBook
Comment on page
Policy
Usage
snyk policy [<PATH_TO_POLICY_FILE>] [<OPTIONS>]
Description
The
snyk policy
command displays the
.snyk
policy file for a package.
Argument:
<PATH_TO_POLICY_FILE>
Manually pass a path to a
.snyk
policy file.
Debug
Use
-d
option to output the debug logs.
Previous
Monitor
Next
SBOM
Last modified
8mo ago