snyk 1.783.0 → 1.784.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,9 +14,6 @@ Displays a `.snyk` policy file.
14
14
 
15
15
  Manually pass a path to a snyk policy file.
16
16
 
17
-
18
-
19
-
20
17
  ### Flags available accross all commands
21
18
 
22
19
  #### `--insecure`
@@ -39,19 +36,6 @@ Prints versions.
39
36
 
40
37
  Prints a help text. You may specify a `<COMMAND>` to get more details.
41
38
 
42
-
43
-
44
-
45
- ## Exit codes
46
-
47
- Possible exit codes and their meaning:
48
-
49
- **0**: success, no vulns found<br />
50
- **1**: action_needed, vulns found<br />
51
- **2**: failure, try to re-run command<br />
52
- **3**: failure, no supported projects detected<br />
53
-
54
-
55
39
  ## Environment
56
40
 
57
41
  You can set these environment variables to change CLI settings.
@@ -77,27 +61,27 @@ Specify a username to use when connecting to a container registry. Note that usi
77
61
 
78
62
  Specify a password to use when connecting to a container registry. Note that using the `--password` flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present.
79
63
 
80
- ## Connecting to Snyk API
64
+ ### Connecting to Snyk API
81
65
 
82
66
  By default Snyk CLI will connect to `https://snyk.io/api/v1`.
83
67
 
84
- ### `SNYK_API`
68
+ #### `SNYK_API`
85
69
 
86
70
  Sets API host to use for Snyk requests. Useful for on-premise instances and configuring proxies. If set with `http` protocol CLI will upgrade the requests to `https`. Unless `SNYK_HTTP_PROTOCOL_UPGRADE` is set to `0`.
87
71
 
88
- ### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
72
+ #### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
89
73
 
90
74
  If set to the value of `0`, API requests aimed at `http` URLs will not be upgraded to `https`. If not set, the default behavior will be to upgrade these requests from `http` to `https`. Useful e.g., for reverse proxies.
91
75
 
92
- ### `HTTPS_PROXY` and `HTTP_PROXY`
76
+ #### `HTTPS_PROXY` and `HTTP_PROXY`
93
77
 
94
78
  Allows you to specify a proxy to use for `https` and `http` calls. The `https` in the `HTTPS_PROXY` means that _requests using `https` protocol_ will use this proxy. The proxy itself doesn't need to use `https`.
95
79
 
80
+ ## Exit codes
96
81
 
97
- ## Notices
98
-
99
- ### Snyk API usage policy
100
-
101
- The use of Snyk's API, whether through the use of the 'snyk' npm package or otherwise, is subject to the terms & conditions
102
- https://snyk.co/ucT6N
82
+ Possible exit codes and their meaning:
103
83
 
84
+ **0**: success, no vulns found<br />
85
+ **1**: action_needed, vulns found<br />
86
+ **2**: failure, try to re-run command<br />
87
+ **3**: failure, no supported projects detected<br />
@@ -20,9 +20,6 @@ See the official guide for the usage: https://github.com/snyk/snyk/tree/master/p
20
20
 
21
21
  Don't apply updates or patches when running.
22
22
 
23
-
24
-
25
-
26
23
  ### Flags available accross all commands
27
24
 
28
25
  #### `--insecure`
@@ -45,19 +42,6 @@ Prints versions.
45
42
 
46
43
  Prints a help text. You may specify a `<COMMAND>` to get more details.
47
44
 
48
-
49
-
50
-
51
- ## Exit codes
52
-
53
- Possible exit codes and their meaning:
54
-
55
- **0**: success, no vulns found<br />
56
- **1**: action_needed, vulns found<br />
57
- **2**: failure, try to re-run command<br />
58
- **3**: failure, no supported projects detected<br />
59
-
60
-
61
45
  ## Environment
62
46
 
63
47
  You can set these environment variables to change CLI settings.
@@ -83,27 +67,27 @@ Specify a username to use when connecting to a container registry. Note that usi
83
67
 
84
68
  Specify a password to use when connecting to a container registry. Note that using the `--password` flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present.
85
69
 
86
- ## Connecting to Snyk API
70
+ ### Connecting to Snyk API
87
71
 
88
72
  By default Snyk CLI will connect to `https://snyk.io/api/v1`.
89
73
 
90
- ### `SNYK_API`
74
+ #### `SNYK_API`
91
75
 
92
76
  Sets API host to use for Snyk requests. Useful for on-premise instances and configuring proxies. If set with `http` protocol CLI will upgrade the requests to `https`. Unless `SNYK_HTTP_PROTOCOL_UPGRADE` is set to `0`.
93
77
 
94
- ### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
78
+ #### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
95
79
 
96
80
  If set to the value of `0`, API requests aimed at `http` URLs will not be upgraded to `https`. If not set, the default behavior will be to upgrade these requests from `http` to `https`. Useful e.g., for reverse proxies.
97
81
 
98
- ### `HTTPS_PROXY` and `HTTP_PROXY`
82
+ #### `HTTPS_PROXY` and `HTTP_PROXY`
99
83
 
100
84
  Allows you to specify a proxy to use for `https` and `http` calls. The `https` in the `HTTPS_PROXY` means that _requests using `https` protocol_ will use this proxy. The proxy itself doesn't need to use `https`.
101
85
 
86
+ ## Exit codes
102
87
 
103
- ## Notices
104
-
105
- ### Snyk API usage policy
106
-
107
- The use of Snyk's API, whether through the use of the 'snyk' npm package or otherwise, is subject to the terms & conditions
108
- https://snyk.co/ucT6N
88
+ Possible exit codes and their meaning:
109
89
 
90
+ **0**: success, no vulns found<br />
91
+ **1**: action_needed, vulns found<br />
92
+ **2**: failure, try to re-run command<br />
93
+ **3**: failure, no supported projects detected<br />
@@ -8,7 +8,6 @@
8
8
 
9
9
  Test command checks locally installed projects for vulnerabilities. It tries to autodetect supported manifest files with dependencies and test those.
10
10
 
11
-
12
11
  ## Options
13
12
 
14
13
  To see command-specific flags and usage, see `help` command, e.g. `snyk container --help`.
@@ -16,32 +15,27 @@ For advanced usage, we offer language and context specific flags, listed further
16
15
 
17
16
  ### `--all-projects`
18
17
 
19
- (only in `test` and `monitor` commands)
20
18
  Auto-detect all projects in working directory
21
19
 
22
20
  ### `--detection-depth=<DEPTH>`
23
21
 
24
- (only in `test` and `monitor` commands)
25
22
  Use with --all-projects or --yarn-workspaces to indicate how many sub-directories to search. `DEPTH` must be a number.
26
23
 
27
24
  Default: 4 (the current working directory and 3 sub-directories)
28
25
 
29
26
  ### `--exclude=<DIRECTORY>[,<DIRECTORY>]...>`
30
27
 
31
- (only in `test` and `monitor` commands)
32
28
  Can be used with --all-projects and --yarn-workspaces to indicate sub-directories and files to exclude. Must be comma separated.
33
29
 
34
30
  If using with `--detection-depth` exclude ignores directories at any level deep.
35
31
 
36
32
  ### `--prune-repeated-subdependencies`, `-p`
37
33
 
38
- (only in `test` and `monitor` commands)
39
34
  Prune dependency trees, removing duplicate sub-dependencies.
40
35
  Will still find all vulnerabilities, but potentially not all of the vulnerable paths.
41
36
 
42
37
  ### `--print-deps`
43
38
 
44
- (only in `test` and `monitor` commands)
45
39
  Print the dependency tree before sending it for analysis.
46
40
 
47
41
  ### `--remote-repo-url=<URL>`
@@ -95,26 +89,6 @@ Specify a custom Snyk project name.
95
89
 
96
90
  A reference which differentiates this project. For example, a branch name or version. Projects using the same reference can be used for grouping. Only supported for Snyk Open Source. [More information](https://snyk.info/3B0vTPs).
97
91
 
98
- ### `--project-environment=<ENVIRONMENT>[,<ENVIRONMENT>]...>`
99
-
100
- (only in `monitor` command)
101
- Set the project environment to one or more values (comma-separated). Allowed values: frontend, backend, internal, external, mobile, saas, onprem, hosted, distributed
102
-
103
- ### `--project-lifecycle=<LIFECYCLE>[,<LIFECYCLE>]...>`
104
-
105
- (only in `monitor` command)
106
- Set the project lifecycle to one or more values (comma-separated). Allowed values: production, development, sandbox
107
-
108
- ### `--project-business-criticality=<BUSINESS_CRITICALITY>[,<BUSINESS_CRITICALITY>]...>`
109
-
110
- (only in `monitor` command)
111
- Set the project business criticality to one or more values (comma-separated). Allowed values: critical, high, medium, low
112
-
113
- ### `--project-tags=<TAG>[,<TAG>]...>`
114
-
115
- (only in `monitor` command)
116
- Set the project tags to one or more values (comma-separated key value pairs with an "=" separator). e.g. --project-tags=department=finance,team=alpha
117
-
118
92
  ### `--tags=<TAG>[,<TAG>]...>`
119
93
 
120
94
  This is an alias for `--project-tags`.
@@ -129,7 +103,6 @@ Prints results in JSON format.
129
103
 
130
104
  ### `--json-file-output=<OUTPUT_FILE_PATH>`
131
105
 
132
- (only in `test` command)
133
106
  Save test output in JSON format directly to the specified file, regardless of whether or not you use the `--json` option.
134
107
  This is especially useful if you want to display the human-readable test output via stdout and at the same time save the JSON format output to a file.
135
108
 
@@ -139,7 +112,6 @@ Return results in SARIF format.
139
112
 
140
113
  ### `--sarif-file-output=<OUTPUT_FILE_PATH>`
141
114
 
142
- (only in `test` command)
143
115
  Save test output in SARIF format directly to the <OUTPUT_FILE_PATH> file, regardless of whether or not you use the `--sarif` option.
144
116
  This is especially useful if you want to display the human-readable test output via stdout and at the same time save the SARIF format output to a file.
145
117
 
@@ -172,7 +144,6 @@ Auto detects maven jars, aars, and wars in given directory. Individual testing c
172
144
 
173
145
  #### `--reachable`
174
146
 
175
- (only in `test` and `monitor` commands)
176
147
  Analyze your source code to find which vulnerable
177
148
  functions and packages are called.
178
149
 
@@ -204,7 +175,6 @@ Select certain values of configuration attributes to resolve the dependencies. E
204
175
 
205
176
  #### `--reachable`
206
177
 
207
- (only in `test` and `monitor` commands)
208
178
  Analyze your source code to find which vulnerable
209
179
  functions and packages are called.
210
180
 
@@ -250,7 +220,6 @@ Default: true
250
220
 
251
221
  #### `--yarn-workspaces`
252
222
 
253
- (only in `test` and `monitor` commands)
254
223
  Detect and scan yarn workspaces. You can specify how many sub-directories to search using `--detection-depth` and exclude directories and files using `--exclude`.
255
224
 
256
225
  ### CocoaPods options
@@ -274,7 +243,6 @@ Example: `--command=python3`
274
243
 
275
244
  Allow skipping packages that are not found in the environment.
276
245
 
277
-
278
246
  ### Flags available accross all commands
279
247
 
280
248
  #### `--insecure`
@@ -297,19 +265,6 @@ Prints versions.
297
265
 
298
266
  Prints a help text. You may specify a `<COMMAND>` to get more details.
299
267
 
300
-
301
-
302
-
303
- ## Exit codes
304
-
305
- Possible exit codes and their meaning:
306
-
307
- **0**: success, no vulns found<br />
308
- **1**: action_needed, vulns found<br />
309
- **2**: failure, try to re-run command<br />
310
- **3**: failure, no supported projects detected<br />
311
-
312
-
313
268
  ## Environment
314
269
 
315
270
  You can set these environment variables to change CLI settings.
@@ -335,27 +290,27 @@ Specify a username to use when connecting to a container registry. Note that usi
335
290
 
336
291
  Specify a password to use when connecting to a container registry. Note that using the `--password` flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present.
337
292
 
338
- ## Connecting to Snyk API
293
+ ### Connecting to Snyk API
339
294
 
340
295
  By default Snyk CLI will connect to `https://snyk.io/api/v1`.
341
296
 
342
- ### `SNYK_API`
297
+ #### `SNYK_API`
343
298
 
344
299
  Sets API host to use for Snyk requests. Useful for on-premise instances and configuring proxies. If set with `http` protocol CLI will upgrade the requests to `https`. Unless `SNYK_HTTP_PROTOCOL_UPGRADE` is set to `0`.
345
300
 
346
- ### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
301
+ #### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
347
302
 
348
303
  If set to the value of `0`, API requests aimed at `http` URLs will not be upgraded to `https`. If not set, the default behavior will be to upgrade these requests from `http` to `https`. Useful e.g., for reverse proxies.
349
304
 
350
- ### `HTTPS_PROXY` and `HTTP_PROXY`
305
+ #### `HTTPS_PROXY` and `HTTP_PROXY`
351
306
 
352
307
  Allows you to specify a proxy to use for `https` and `http` calls. The `https` in the `HTTPS_PROXY` means that _requests using `https` protocol_ will use this proxy. The proxy itself doesn't need to use `https`.
353
308
 
309
+ ## Exit codes
354
310
 
355
- ## Notices
356
-
357
- ### Snyk API usage policy
358
-
359
- The use of Snyk's API, whether through the use of the 'snyk' npm package or otherwise, is subject to the terms & conditions
360
- https://snyk.co/ucT6N
311
+ Possible exit codes and their meaning:
361
312
 
313
+ **0**: success, no vulns found<br />
314
+ **1**: action_needed, vulns found<br />
315
+ **2**: failure, try to re-run command<br />
316
+ **3**: failure, no supported projects detected<br />
@@ -15,9 +15,6 @@ Snyk's wizard will:
15
15
 
16
16
  ## Options
17
17
 
18
-
19
-
20
-
21
18
  ### Flags available accross all commands
22
19
 
23
20
  #### `--insecure`
@@ -40,19 +37,6 @@ Prints versions.
40
37
 
41
38
  Prints a help text. You may specify a `<COMMAND>` to get more details.
42
39
 
43
-
44
-
45
-
46
- ## Exit codes
47
-
48
- Possible exit codes and their meaning:
49
-
50
- **0**: success, no vulns found<br />
51
- **1**: action_needed, vulns found<br />
52
- **2**: failure, try to re-run command<br />
53
- **3**: failure, no supported projects detected<br />
54
-
55
-
56
40
  ## Environment
57
41
 
58
42
  You can set these environment variables to change CLI settings.
@@ -78,27 +62,27 @@ Specify a username to use when connecting to a container registry. Note that usi
78
62
 
79
63
  Specify a password to use when connecting to a container registry. Note that using the `--password` flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present.
80
64
 
81
- ## Connecting to Snyk API
65
+ ### Connecting to Snyk API
82
66
 
83
67
  By default Snyk CLI will connect to `https://snyk.io/api/v1`.
84
68
 
85
- ### `SNYK_API`
69
+ #### `SNYK_API`
86
70
 
87
71
  Sets API host to use for Snyk requests. Useful for on-premise instances and configuring proxies. If set with `http` protocol CLI will upgrade the requests to `https`. Unless `SNYK_HTTP_PROTOCOL_UPGRADE` is set to `0`.
88
72
 
89
- ### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
73
+ #### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
90
74
 
91
75
  If set to the value of `0`, API requests aimed at `http` URLs will not be upgraded to `https`. If not set, the default behavior will be to upgrade these requests from `http` to `https`. Useful e.g., for reverse proxies.
92
76
 
93
- ### `HTTPS_PROXY` and `HTTP_PROXY`
77
+ #### `HTTPS_PROXY` and `HTTP_PROXY`
94
78
 
95
79
  Allows you to specify a proxy to use for `https` and `http` calls. The `https` in the `HTTPS_PROXY` means that _requests using `https` protocol_ will use this proxy. The proxy itself doesn't need to use `https`.
96
80
 
81
+ ## Exit codes
97
82
 
98
- ## Notices
99
-
100
- ### Snyk API usage policy
101
-
102
- The use of Snyk's API, whether through the use of the 'snyk' npm package or otherwise, is subject to the terms & conditions
103
- https://snyk.co/ucT6N
83
+ Possible exit codes and their meaning:
104
84
 
85
+ **0**: success, no vulns found<br />
86
+ **1**: action_needed, vulns found<br />
87
+ **2**: failure, try to re-run command<br />
88
+ **3**: failure, no supported projects detected<br />
File without changes
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "snyk",
3
- "version": "1.783.0",
3
+ "version": "1.784.0",
4
4
  "description": "snyk library and cli utility",
5
5
  "files": [
6
- "help/commands-md",
6
+ "help/cli-commands",
7
7
  "dist",
8
8
  "bin",
9
9
  "pysrc",
@@ -15,7 +15,7 @@
15
15
  "directories": {
16
16
  "lib": "src",
17
17
  "test": "test",
18
- "doc": "help/commands-md"
18
+ "doc": "help/cli-commands"
19
19
  },
20
20
  "bin": {
21
21
  "snyk": "bin/snyk"
@@ -41,7 +41,6 @@
41
41
  "build:prod": "lerna run build --ignore snyk && npm run build-cli:prod",
42
42
  "build-cli:dev": "node --max-old-space-size=8192 node_modules/webpack/bin/webpack.js --config webpack.dev.ts",
43
43
  "build-cli:prod": "node --max-old-space-size=8192 node_modules/webpack/bin/webpack.js --config webpack.prod.ts",
44
- "generate-help": "npx ts-node ./help/generator/generator.ts",
45
44
  "watch": "npm run build-cli:dev -- --watch",
46
45
  "test": "npm run test:acceptance && npm run test:system && npm run test:test && npm run test:jest && test:packages-unit && test:packages-acceptance",
47
46
  "test:acceptance": "tap test/acceptance/**/*.test.* test/acceptance/*.test.* -Rspec --timeout=300 --node-arg=-r --node-arg=ts-node/register",
@@ -87,5 +86,5 @@
87
86
  "registry": "https://registry.npmjs.org/",
88
87
  "access": "public"
89
88
  },
90
- "gitHead": "2b9058070bded1451b357eed1bebd434e60dd1bb"
89
+ "gitHead": "206605208b06d88c256619ea13c2f5f39543466a"
91
90
  }
@@ -1,99 +0,0 @@
1
- # snyk help -- Prints help topics
2
-
3
- ## Usage
4
-
5
- `snyk help [<TOPIC>] [<OPTIONS>]`
6
-
7
- ## Description
8
-
9
- Prints help information. Pass in name of a command as `<TOPIC>`.
10
-
11
- ## Options
12
-
13
-
14
-
15
-
16
- ### Flags available accross all commands
17
-
18
- #### `--insecure`
19
-
20
- Ignore unknown certificate authorities.
21
-
22
- #### `-d`
23
-
24
- Output debug logs.
25
-
26
- #### `--quiet`, `-q`
27
-
28
- Silence all output.
29
-
30
- #### `--version`, `-v`
31
-
32
- Prints versions.
33
-
34
- #### `--help [<COMMAND>]`, `[<COMMAND>] --help`, `-h`
35
-
36
- Prints a help text. You may specify a `<COMMAND>` to get more details.
37
-
38
-
39
-
40
-
41
- ## Exit codes
42
-
43
- Possible exit codes and their meaning:
44
-
45
- **0**: success, no vulns found<br />
46
- **1**: action_needed, vulns found<br />
47
- **2**: failure, try to re-run command<br />
48
- **3**: failure, no supported projects detected<br />
49
-
50
-
51
- ## Environment
52
-
53
- You can set these environment variables to change CLI settings.
54
-
55
- ### `SNYK_TOKEN`
56
-
57
- Snyk authorization token. Setting this envvar will override the token that may be available in your `snyk config` settings.
58
-
59
- [How to get your account token](https://snyk.co/ucT6J)<br />
60
- [How to use Service Accounts](https://snyk.co/ucT6L)<br />
61
-
62
- ### `SNYK_CFG_KEY`
63
-
64
- Allows you to override any key that's also available as `snyk config` option.
65
-
66
- E.g. `SNYK_CFG_ORG=myorg` will override default org option in `config` with "myorg".
67
-
68
- ### `SNYK_REGISTRY_USERNAME`
69
-
70
- Specify a username to use when connecting to a container registry. Note that using the `--username` flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present.
71
-
72
- ### `SNYK_REGISTRY_PASSWORD`
73
-
74
- Specify a password to use when connecting to a container registry. Note that using the `--password` flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present.
75
-
76
- ## Connecting to Snyk API
77
-
78
- By default Snyk CLI will connect to `https://snyk.io/api/v1`.
79
-
80
- ### `SNYK_API`
81
-
82
- Sets API host to use for Snyk requests. Useful for on-premise instances and configuring proxies. If set with `http` protocol CLI will upgrade the requests to `https`. Unless `SNYK_HTTP_PROTOCOL_UPGRADE` is set to `0`.
83
-
84
- ### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
85
-
86
- If set to the value of `0`, API requests aimed at `http` URLs will not be upgraded to `https`. If not set, the default behavior will be to upgrade these requests from `http` to `https`. Useful e.g., for reverse proxies.
87
-
88
- ### `HTTPS_PROXY` and `HTTP_PROXY`
89
-
90
- Allows you to specify a proxy to use for `https` and `http` calls. The `https` in the `HTTPS_PROXY` means that _requests using `https` protocol_ will use this proxy. The proxy itself doesn't need to use `https`.
91
-
92
-
93
- ## Notices
94
-
95
- ### Snyk API usage policy
96
-
97
- The use of Snyk's API, whether through the use of the 'snyk' npm package or otherwise, is subject to the terms & conditions
98
- https://snyk.co/ucT6N
99
-
@@ -1,103 +0,0 @@
1
- # snyk woof -- W00f
2
-
3
- ## Usage
4
-
5
- `snyk woof [<OPTIONS>]`
6
-
7
- ## Description
8
-
9
- Easter egg that prints a Patch ascii art.
10
-
11
- ## Options
12
-
13
- ### `--language=<LANGUAGE>`
14
-
15
- Woof in a specific language. `<LANGUAGE>` should be an ISO 639-1 code.
16
-
17
-
18
-
19
-
20
- ### Flags available accross all commands
21
-
22
- #### `--insecure`
23
-
24
- Ignore unknown certificate authorities.
25
-
26
- #### `-d`
27
-
28
- Output debug logs.
29
-
30
- #### `--quiet`, `-q`
31
-
32
- Silence all output.
33
-
34
- #### `--version`, `-v`
35
-
36
- Prints versions.
37
-
38
- #### `--help [<COMMAND>]`, `[<COMMAND>] --help`, `-h`
39
-
40
- Prints a help text. You may specify a `<COMMAND>` to get more details.
41
-
42
-
43
-
44
-
45
- ## Exit codes
46
-
47
- Possible exit codes and their meaning:
48
-
49
- **0**: success, no vulns found<br />
50
- **1**: action_needed, vulns found<br />
51
- **2**: failure, try to re-run command<br />
52
- **3**: failure, no supported projects detected<br />
53
-
54
-
55
- ## Environment
56
-
57
- You can set these environment variables to change CLI settings.
58
-
59
- ### `SNYK_TOKEN`
60
-
61
- Snyk authorization token. Setting this envvar will override the token that may be available in your `snyk config` settings.
62
-
63
- [How to get your account token](https://snyk.co/ucT6J)<br />
64
- [How to use Service Accounts](https://snyk.co/ucT6L)<br />
65
-
66
- ### `SNYK_CFG_KEY`
67
-
68
- Allows you to override any key that's also available as `snyk config` option.
69
-
70
- E.g. `SNYK_CFG_ORG=myorg` will override default org option in `config` with "myorg".
71
-
72
- ### `SNYK_REGISTRY_USERNAME`
73
-
74
- Specify a username to use when connecting to a container registry. Note that using the `--username` flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present.
75
-
76
- ### `SNYK_REGISTRY_PASSWORD`
77
-
78
- Specify a password to use when connecting to a container registry. Note that using the `--password` flag will override this value. This will be ignored in favour of local Docker binary credentials when Docker is present.
79
-
80
- ## Connecting to Snyk API
81
-
82
- By default Snyk CLI will connect to `https://snyk.io/api/v1`.
83
-
84
- ### `SNYK_API`
85
-
86
- Sets API host to use for Snyk requests. Useful for on-premise instances and configuring proxies. If set with `http` protocol CLI will upgrade the requests to `https`. Unless `SNYK_HTTP_PROTOCOL_UPGRADE` is set to `0`.
87
-
88
- ### `SNYK_HTTP_PROTOCOL_UPGRADE=0`
89
-
90
- If set to the value of `0`, API requests aimed at `http` URLs will not be upgraded to `https`. If not set, the default behavior will be to upgrade these requests from `http` to `https`. Useful e.g., for reverse proxies.
91
-
92
- ### `HTTPS_PROXY` and `HTTP_PROXY`
93
-
94
- Allows you to specify a proxy to use for `https` and `http` calls. The `https` in the `HTTPS_PROXY` means that _requests using `https` protocol_ will use this proxy. The proxy itself doesn't need to use `https`.
95
-
96
-
97
- ## Notices
98
-
99
- ### Snyk API usage policy
100
-
101
- The use of Snyk's API, whether through the use of the 'snyk' npm package or otherwise, is subject to the terms & conditions
102
- https://snyk.co/ucT6N
103
-