9
9
10
10
``` bash
11
11
npm install -g socket
12
- ```
13
-
14
- ``` bash
15
12
socket --help
16
-
17
- socket report create package.json --view
18
- socket report view QXU8PmK7LfH608RAwfIKdbcHgwEd_ZeWJ9QEGv05FJUQ
19
- socket wrapper --enable
20
13
```
21
14
22
15
## Commands
23
16
24
- ### Popular Commands
25
-
26
17
- ` socket npm [args...] ` and ` socket npx [args...] ` - Wraps ` npm ` and ` npx ` to
27
18
integrate Socket and preempt installation of alerted packages using the
28
19
builtin resolution of ` npm ` to precisely determine package installations.
@@ -33,38 +24,11 @@ socket wrapper --enable
33
24
- ` --pin ` - Pin overrides to their latest version.
34
25
- ` --prod ` - Add overrides for only production dependencies.
35
26
36
- ### Other Commands
37
-
38
27
- ` socket cdxgen [command] ` - Call out to
39
28
[ cdxgen] ( https://cyclonedx.github.io/cdxgen/#/?id=getting-started ) . See
40
29
[ their documentation] ( https://cyclonedx.github.io/cdxgen/#/CLI?id=getting-help )
41
30
for commands.
42
31
43
- - ` socket info <package@version> ` - Look up issues for a package.
44
-
45
- - ` socket raw-npm [args...] ` and ` socket raw-npx [args...] ` - Temporarily
46
- disable the Socket 'safe-npm' wrapper.
47
-
48
- - ` socket report create <path(s)-to-folder-or-file> ` - Create a report on
49
- [ Socket.dev] ( https://socket.dev/ )
50
-
51
- Upload the specified ` package.json ` and lock files for JavaScript, Python, and
52
- Go dependency manifests. If any folder is specified, the ones found in there
53
- recursively are uploaded.
54
-
55
- Glob patterns such as ` **/package.json ` , ` **/requirements.txt ` ,
56
- ` **/pyproject.toml ` , and ` **/go.mod ` is supported.
57
-
58
- Intuitively ignores files matching your project's ` .gitignore ` , the
59
- ` projectIgnorePaths ` in your project's
60
- [ ` socket.yml ` ] ( https://docs.socket.dev/docs/socket-yml ) , and a sensible set of
61
- [ default ignore patterns] ( https://socket.dev/npm/package/ignore-by-default ) .
62
-
63
- - ` socket report view <report-id> ` - Look up issues and scores from a report.
64
-
65
- - ` socket wrapper --enable ` and ` socket wrapper --disable ` - Enable and disable
66
- the Socket 'safe-npm' wrapper.
67
-
68
32
## Aliases
69
33
70
34
All aliases support the flags and arguments of the commands they alias.
0 commit comments