You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: help/cli-commands/code-test.md
+15-1Lines changed: 15 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ You can use environment variables to configure the Snyk CLI and set variables fo
29
29
30
30
Use the `-d` option to output the debug logs.
31
31
32
-
## Options for the code test subcommand
32
+
## Options
33
33
34
34
### `--org=<ORG_ID>`
35
35
@@ -47,6 +47,20 @@ Note that you can also use `--org=<orgslugname>`. The `ORG_ID` works in both the
47
47
48
48
For more information see the article [How to select the organization to use in the CLI](https://docs.snyk.io/snyk-cli/test-for-vulnerabilities/how-to-select-the-organization-to-use-in-the-cli)
49
49
50
+
### `--report`
51
+
52
+
**NEW** option: Share results with the Snyk Web UI.
53
+
54
+
**Feature availability**: This feature is currently in Closed Beta. To obtain access, contact your Snyk account representative.
55
+
56
+
This creates a project in your Snyk account with a snapshot of the current configuration issues or appends the snapshot to an existing project.
57
+
58
+
After using this option, log in to the Snyk website and view your projects to see the snapshot.
59
+
60
+
Example: `$ snyk code test --report` --project-name="PROJECT_NAME"
61
+
62
+
For more information see [Publishing CLI results to a Snyk Project](https://docs.snyk.io/scan-application-code/snyk-code/cli-for-snyk-code/publishing-cli-results-to-a-snyk-project-and-ignoring-cli-results#publishing-cli-results-to-a-snyk-project)
63
+
50
64
### `--json`
51
65
52
66
Print results on the console as a JSON data structure.
Copy file name to clipboardExpand all lines: help/cli-commands/container-test.md
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -116,11 +116,11 @@ Allow disabling scans for app vulnerabilities; in CLI versions 1.1090.0 (2023-01
116
116
117
117
In earlier releases, cannot be used with `--app-vulns`.
118
118
119
-
For more information see [Detecting application vulnerabilities in container images](https://docs.snyk.io/products/snyk-container/getting-around-the-snyk-container-ui/detecting-application-vulnerabilities-in-container-images)
119
+
For more information, see [Detecting application vulnerabilities in container images](https://docs.snyk.io/products/snyk-container/getting-around-the-snyk-container-ui/detecting-application-vulnerabilities-in-container-images)
120
120
121
121
### `--nested-jars-depth`
122
122
123
-
When `app-vulns` is enabled, use the `--nested-jars-depth` option to set how many levels of nested jars Snyk is to unpack. Depth must be a number.
123
+
When `app-vulns` is enabled, use the `--nested-jars-depth=n` option to set how many levels of nested jars Snyk is to unpack. Depth must be a number.
124
124
125
125
### `--exclude-base-image-vulns`
126
126
@@ -156,4 +156,8 @@ Specify a password to use when connecting to a container registry. This is ignor
156
156
157
157
`$ snyk container test app:latest --file=Dockerfile --policy-path=path/to/.snyk`
158
158
159
-
For more information and examples see [Advanced Snyk Container CLI usage](https://docs.snyk.io/snyk-container/snyk-cli-for-container-security/advanced-snyk-container-cli-usage)
159
+
### Refer to a container image by its digest
160
+
161
+
`$ snyk container test app@sha256:17cb37098f0efb819c075eea4ff2a495be909a396e86ece317a6e3a8968e025c --file=Dockerfile`
162
+
163
+
For more information and examples, see [Advanced Snyk Container CLI usage](https://docs.snyk.io/snyk-container/snyk-cli-for-container-security/advanced-snyk-container-cli-usage)
Copy file name to clipboardExpand all lines: help/cli-commands/iac-test.md
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -149,7 +149,9 @@ Set or override the remote URL for the repository.
149
149
150
150
**NEW** option: Share results with the Snyk Web UI.
151
151
152
-
This creates a project in your Snyk account with a snapshot of the current configuration issues. After using this option, log in to the Snyk website and view your projects to see the monitor.
152
+
This creates a project in your Snyk account with a snapshot of the current configuration issues or appends the snapshot to an existing project.
153
+
154
+
After using this option, log in to the Snyk website and view your projects to see the snapshot.
0 commit comments