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
_(👀 [our blog post](https://socket.dev/blog/introducing-socket-optimize))_
24
24
25
25
-`--pin` - Pin overrides to their latest version.
@@ -35,8 +35,7 @@ socket --help
35
35
All aliases support the flags and arguments of the commands they alias.
36
36
37
37
-`socket ci` - alias for `socket report create --view --strict` which creates a
38
-
report and quits with an exit code if the result is unhealthy. Use like eg.
39
-
`socket ci .` for a report for the current folder
38
+
report for the current directory and quits with an exit code if the result is unhealthy.
40
39
41
40
## Flags
42
41
@@ -48,10 +47,10 @@ All aliases support the flags and arguments of the commands they alias.
48
47
49
48
### Output flags
50
49
51
-
-`--json` - outputs result as json which you can then pipe into
52
-
[`jq`](https://stedolan.github.io/jq/) and other tools
53
-
-`--markdown` - outputs result as markdown which you can then copy into an
54
-
issue, PR or even chat
50
+
-`--json` - Outputs result as JSON which you can then pipe into
51
+
[`jq`](https://stedolan.github.io/jq/) and other tools.
52
+
-`--markdown` - Outputs result as Markdown which you can then copy into an
53
+
issue, PR, or chat.
55
54
56
55
## Strictness flags
57
56
@@ -82,7 +81,22 @@ use of the `projectIgnorePaths` to excludes files when creating a report.
82
81
83
82
## Environment variables
84
83
85
-
-`SOCKET_CLI_API_TOKEN` - if set, this will be used as the API-key
84
+
-`SOCKET_CLI_ACCEPT_RISKS` - Accept risks of a safe-npm and safe-npx run.
85
+
-`SOCKET_CLI_API_TOKEN` - Set the Socket API token.
86
+
Aliases: `SOCKET_CLI_API_KEY`, `SOCKET_SECURITY_API_TOKEN`, and `SOCKET_SECURITY_API_KEY`
87
+
-`SOCKET_CLI_CONFIG` - A JSON stringified Socket configuration object.
88
+
-`SOCKET_CLI_GIT_USER_EMAIL` - The git config user.email used by Socket CLI.
89
+
Defaults to `'github-actions[bot]@users.noreply.github.com'`
90
+
-`SOCKET_CLI_GIT_USER_NAME` - The git config user.name used by Socket CLI.
91
+
Defaults to `'github-actions[bot]`.
92
+
Aliases: `SOCKET_CLI_GIT_USERNAME`
93
+
-`SOCKET_CLI_GITHUB_TOKEN` - A classic [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with the "repo" scope or a fine-grained access token with at least read/write permissions set for "Contents" and "Pull Request".
94
+
Aliases: `SOCKET_SECURITY_GITHUB_PAT` and `GITHUB_TOKEN`
95
+
-`SOCKET_CLI_NO_API_TOKEN` - Make the default API token `undefined`.
96
+
-`SOCKET_CLI_NPM_PATH` - The absolute location of the npm directory.
97
+
-`SOCKET_CLI_ORG_SLUG` - Specify the Socket organization slug.
98
+
Aliases: `SOCKET_ORG_SLUG`
99
+
-`SOCKET_CLI_VIEW_ALL_RISKS` - View all risks of a safe-npm and safe-npx run.
86
100
87
101
## Contributing
88
102
@@ -101,21 +115,24 @@ That should invoke it from local sources. If you make changes you run
101
115
102
116
### Environment variables for development
103
117
104
-
-`SOCKET_CLI_API_BASE_URL` - if set, this will be the base for all
105
-
API-calls. Defaults to `https://api.socket.dev/v0/`
106
-
-`SOCKET_CLI_API_PROXY` - if set to something like
then all request will be proxied through that proxy
118
+
-`DEBUG` - Enable debug logging based on the [`debug`](https://socket.dev/npm/package/debug) package.
119
+
-`SOCKET_CLI_API_BASE_URL` - Change the base URL for all API-calls.
120
+
Defaults to the "apiBaseUrl" value of socket/settings local app data if present, else `https://api.socket.dev/v0/`.
121
+
Aliases: `SOCKET_SECURITY_API_BASE_URL`
122
+
-`SOCKET_CLI_API_PROXY` - Set the proxy that all requests are routed through.
123
+
For example, if set to [`http://127.0.0.1:9090`](https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries), then all request are proxied through that proxy.
124
+
Aliases: `HTTPS_PROXY`, `https_proxy`, `HTTP_PROXY`, and `http_proxy`
125
+
-`SOCKET_CLI_DEBUG` - Enable debug logging in Socket CLI.
126
+
Not needed if `DEBUG` is specified.
109
127
110
128
## Similar projects
111
129
112
-
-[`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js) - the SDK
113
-
used in this CLI
130
+
-[`@socketsecurity/sdk`](https://github.com/SocketDev/socket-sdk-js) - The SDK used by Socket CLI
114
131
115
132
## See also
116
133
117
134
-[Announcement blog post](https://socket.dev/blog/announcing-socket-cli-preview)
118
-
-[Socket API Reference](https://docs.socket.dev/reference) - the API used in
119
-
this CLI
120
-
-[Socket GitHub App](https://github.com/apps/socket-security) - the
121
-
plug-and-play GitHub App
135
+
-[Socket API Reference](https://docs.socket.dev/reference) - The API used by Socket CLI
136
+
-[Socket GitHub App](https://github.com/apps/socket-security) - The plug-and-play GitHub App
0 commit comments