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: README.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,8 +48,8 @@ All aliases support the flags and arguments of the commands they alias.
48
48
-`--dry-run` - Run a command without uploading anything
49
49
-`--debug` - Output additional debug
50
50
-`--help` - Prints help documentation for a command
51
-
-`--max-old-space-size` - Set Node's [`--max-old-space-size`](https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-mib)value
52
-
-`--max-semi-space-size` - Set Node's [`--max-semi-space-size`](https://nodejs.org/api/cli.html#--max-semi-space-sizesize-in-mib)value
51
+
-`--max-old-space-size` - Set Node's V8 [`--max-old-space-size`](https://nodejs.org/api/cli.html#--max-old-space-sizesize-in-mib)option
52
+
-`--max-semi-space-size` - Set Node's V8 [`--max-semi-space-size`](https://nodejs.org/api/cli.html#--max-semi-space-sizesize-in-mib)option
53
53
-`--version` - Prints the Socket CLI version
54
54
55
55
## Configuration files
@@ -91,8 +91,8 @@ npm exec socket
91
91
92
92
-`SOCKET_CLI_API_BASE_URL` - Change the base URL for all API-calls<br>
93
93
*Defaults:* The "apiBaseUrl" value of socket/settings local app data if present, else `https://api.socket.dev/v0/`<br>
94
-
-`SOCKET_CLI_API_PROXY` - Set the proxy that all requests are routed through<br>
95
-
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<br>
94
+
-`SOCKET_CLI_API_PROXY` - Set the proxy all requests are routed through, e.g. if set to<br>
95
+
[`http://127.0.0.1:9090`](https://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries), then all request are passed through that proxy<br>
96
96
*Aliases:*`HTTPS_PROXY`, `https_proxy`, `HTTP_PROXY`, and `http_proxy`<br>
97
97
-`SOCKET_CLI_DEBUG` - Enable debug logging in Socket CLI
98
98
-`DEBUG` - Enable debug logging based on the [`debug`](https://socket.dev/npm/package/debug) package
fix Update dependencies with "fixable" Socket alerts
40
-
manifest Generate a dependency manifest for certain ecosystems
41
-
npm Run npm with the Socket wrapper
42
-
npx Run npx with the Socket wrapper
43
-
optimize Optimize dependencies with @socketregistry overrides
44
-
raw-npm Run npm without the Socket wrapper
45
-
raw-npx Run npx without the Socket wrapper
42
+
fix Update dependencies with "fixable" Socket alerts
43
+
manifest Generate a dependency manifest for certain ecosystems
44
+
npm Run npm with the Socket wrapper
45
+
npx Run npx with the Socket wrapper
46
+
optimize Optimize dependencies with @socketregistry overrides
47
+
raw-npm Run npm without the Socket wrapper
48
+
raw-npx Run npx without the Socket wrapper
46
49
47
50
CLI configuration
48
51
49
-
config Manage Socket CLI configuration
50
-
install Install Socket CLI tab completion
51
-
login Socket API login and CLI setup
52
-
logout Socket API logout
53
-
uninstall Uninstall Socket CLI tab completion
54
-
wrapper Enable or disable the Socket npm/npx wrapper
55
-
56
-
Environment variables
52
+
config Manage Socket CLI configuration
53
+
install Install Socket CLI tab completion
54
+
login Socket API login and CLI setup
55
+
logout Socket API logout
56
+
uninstall Uninstall Socket CLI tab completion
57
+
wrapper Enable or disable the Socket npm/npx wrapper
57
58
58
-
SOCKET_CLI_ACCEPT_RISKS Accept risks of a safe-npm or safe-npx run
59
-
SOCKET_CLI_API_TOKEN Set the Socket API token
60
-
SOCKET_CLI_CONFIG. A JSON stringified Socket configuration object
61
-
SOCKET_CLI_GIT_USER_EMAIL The git config \`user.email\` used by Socket CLI
62
-
SOCKET_CLI_GIT_USER_NAME The git config \`user.name\` used by Socket CLI
63
-
SOCKET_CLI_GITHUB_TOKEN A classic or fine-grained GitHub personal access token (\\u200bhttps://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens\\u200b)
64
-
SOCKET_CLI_NO_API_TOKEN Make the default API token \`undefined\`
65
-
SOCKET_CLI_NPM_PATH The absolute location of the npm directory
66
-
SOCKET_CLI_ORG_SLUG Specify the Socket organization slug
67
-
SOCKET_CLI_VIEW_ALL_RISKS View all risks of a safe-npm or safe-npx run
59
+
Options
60
+
(Note: All commands have these flags even when not displayed in their help)
68
61
69
-
Environment variables for development
62
+
--config Override the local config with this JSON
63
+
--dry-run Do input validation for a command and exit 0 when input is ok
64
+
--help Print this help
65
+
--max-old-space-size Set Node's V8 --max-old-space-size (\\u200bhttps://nodejs.org/api/cli.html#--max-old-space-sizesize-in-mib\\u200b) option
66
+
--max-semi-space-size Set Node's V8 --max-semi-space-size (\\u200bhttps://nodejs.org/api/cli.html#--max-semi-space-sizesize-in-mib\\u200b) option
67
+
--version Print the app version
70
68
71
-
SOCKET_CLI_API_BASE_URL Change the base URL for all API-calls
72
-
SOCKET_CLI_API_PROXY Set the proxy that all requests are routed through
73
-
SOCKET_CLI_DEBUG Enable debug logging in Socket CLI
74
-
DEBUG Enable debug logging based on the debug (\\u200bhttps://socket.dev/npm/package/debug\\u200b) package
69
+
Environment variables
75
70
76
-
Options (Note: All CLI commands have these flags even when not displayed in their help)
71
+
SOCKET_CLI_ACCEPT_RISKS Accept risks of a safe-npm or safe-npx run
72
+
SOCKET_CLI_API_TOKEN Set the Socket API token
73
+
SOCKET_CLI_CONFIG A JSON stringified Socket configuration object
74
+
SOCKET_CLI_GIT_USER_EMAIL The git config \`user.email\` used by Socket CLI
SOCKET_CLI_GIT_USER_NAME The git config \`user.name\` used by Socket CLI
77
+
Defaults: github-actions[bot]
78
+
SOCKET_CLI_GITHUB_TOKEN A classic or fine-grained GitHub personal access token (\\u200bhttps://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens\\u200b)
79
+
Aliases: GITHUB_TOKEN
80
+
SOCKET_CLI_NO_API_TOKEN Make the default API token \`undefined\`
81
+
SOCKET_CLI_NPM_PATH The absolute location of the npm directory
82
+
SOCKET_CLI_ORG_SLUG Specify the Socket organization slug
83
+
SOCKET_CLI_VIEW_ALL_RISKS View all risks of a safe-npm or safe-npx run
77
84
78
-
--config Override the local config with this JSON
79
-
--dry-run Do input validation for a command and exit 0 when input is ok
80
-
--help Print this help
81
-
--max-old-space-size Set the max memory size of V8's old memory section in megabytes
82
-
--max-semi-space-size Set the maximum semi-space size for V8's scavenge garbage collector in megabytes
83
-
--version Print the app version
85
+
Environment variables for development
84
86
85
-
Examples
86
-
$ socket --help
87
-
$ socket scan create --json
88
-
$ socket package score npm left-pad --markdown"
87
+
SOCKET_CLI_API_BASE_URL Change the base URL for all API-calls
88
+
Defaults: The "apiBaseUrl" value of socket/settings local app data
89
+
if present, else https://api.socket.dev/v0/
90
+
SOCKET_CLI_API_PROXY Set the proxy all requests are routed through, e.g. if set to
91
+
http://127.0.0.1:9090 (\\u200bhttps://docs.proxyman.io/troubleshooting/couldnt-see-any-requests-from-3rd-party-network-libraries\\u200b) then all request are passed through that proxy
92
+
Aliases: HTTPS_PROXY, https_proxy, HTTP_PROXY, and http_proxy
93
+
SOCKET_CLI_DEBUG Enable debug logging in Socket CLI
94
+
DEBUG Enable debug logging based on the debug (\\u200bhttps://socket.dev/npm/package/debug\\u200b) package"
0 commit comments