@@ -15,7 +15,7 @@ The HeroDevs CLI
15
15
1 . Install node v20 or higher: [ Download Node] ( https://nodejs.org/en/download )
16
16
1 . Install the CLI using one of the following methods:
17
17
- Globally: Refer to the [ Usage] ( #usage ) instructions on installing the CLI globally
18
- - Npx: ` npx @herodevs/cli@beta <commands> `
18
+ - npx: ` npx @herodevs/cli@beta `
19
19
1 . Refer to the [ Commands] ( #commands ) section for a list of commands
20
20
21
21
## TERMS
@@ -24,10 +24,10 @@ Use of this CLI is governed by the [HeroDevs End of Life Dataset Terms of Servic
24
24
25
25
## Scanning Behavior
26
26
27
- The CLI's scanning commands ( ` hd scan eol ` and ` hd scan sbom ` ) are designed to be non-invasive:
27
+ The CLI is designed to be non-invasive:
28
28
29
- * They do not install dependencies or modify package manager files (package-lock.json, yarn.lock, etc.)
30
- * They analyze the project in its current state
29
+ * It does not install dependencies or modify package manager files (package-lock.json, yarn.lock, etc.)
30
+ * It analyzes the project in its current state
31
31
* If you need dependencies installed for accurate scanning, please install them manually before running the scan
32
32
33
33
@@ -38,7 +38,7 @@ $ npm install -g @herodevs/cli
38
38
$ hd COMMAND
39
39
running command...
40
40
$ hd (--version)
41
- @herodevs/cli/2.0.0-beta.4 darwin-arm64 node-v22.15.1
41
+ @herodevs/cli/2.0.0-beta.4 darwin-arm64 node-v22.18.0
42
42
$ hd --help [COMMAND]
43
43
USAGE
44
44
$ hd COMMAND
48
48
## Commands
49
49
<!-- commands -->
50
50
* [ ` hd help [COMMAND] ` ] ( #hd-help-command )
51
- * [ ` hd report committers ` ] ( #hd-report-committers )
52
- * [ ` hd report purls ` ] ( #hd-report-purls )
53
51
* [ ` hd scan eol ` ] ( #hd-scan-eol )
54
- * [ ` hd scan sbom ` ] ( #hd-scan-sbom )
55
52
* [ ` hd update [CHANNEL] ` ] ( #hd-update-channel )
56
53
57
54
## ` hd help [COMMAND] `
@@ -74,130 +71,49 @@ DESCRIPTION
74
71
75
72
_ See code: [ @oclif/plugin-help ] ( https://github.com/oclif/plugin-help/blob/v6.2.29/src/commands/help.ts ) _
76
73
77
- ## ` hd report committers `
78
-
79
- Generate report of committers to a git repository
80
-
81
- ```
82
- USAGE
83
- $ hd report committers [--json] [-m <value>] [-c] [-s]
84
-
85
- FLAGS
86
- -c, --csv Output in CSV format
87
- -m, --months=<value> [default: 12] The number of months of git history to review
88
- -s, --save Save the committers report as herodevs.committers.<output>
89
-
90
- GLOBAL FLAGS
91
- --json Format output as json.
92
-
93
- DESCRIPTION
94
- Generate report of committers to a git repository
95
-
96
- EXAMPLES
97
- $ hd report committers
98
-
99
- $ hd report committers --csv -s
100
-
101
- $ hd report committers --json
102
-
103
- $ hd report committers --csv
104
- ```
105
-
106
- _ See code: [ src/commands/report/committers.ts] ( https://github.com/herodevs/cli/blob/v2.0.0-beta.4/src/commands/report/committers.ts ) _
107
-
108
- ## ` hd report purls `
109
-
110
- Generate a list of purls from a sbom
111
-
112
- ```
113
- USAGE
114
- $ hd report purls [--json] [-f <value>] [-d <value>] [-s] [-c]
115
-
116
- FLAGS
117
- -c, --csv Save output in CSV format (only applies when using --save)
118
- -d, --dir=<value> The directory to scan in order to create a cyclonedx sbom
119
- -f, --file=<value> The file path of an existing cyclonedx sbom to scan for EOL
120
- -s, --save Save the list of purls as herodevs.purls.<output>
121
-
122
- GLOBAL FLAGS
123
- --json Format output as json.
124
-
125
- DESCRIPTION
126
- Generate a list of purls from a sbom
127
-
128
- EXAMPLES
129
- $ hd report purls --json -s
130
-
131
- $ hd report purls --dir=./my-project
132
-
133
- $ hd report purls --file=path/to/sbom.json
134
-
135
- $ hd report purls --dir=./my-project --save
136
-
137
- $ hd report purls --save --csv
138
- ```
139
-
140
- _ See code: [ src/commands/report/purls.ts] ( https://github.com/herodevs/cli/blob/v2.0.0-beta.4/src/commands/report/purls.ts ) _
141
-
142
74
## ` hd scan eol `
143
75
144
- Scan a given sbom for EOL data
76
+ Scan a given SBOM for EOL data
145
77
146
78
```
147
79
USAGE
148
- $ hd scan eol [--json] [-f <value>] [-p <value>] [-d <value> ] [-s ]
80
+ $ hd scan eol [--json] [-f <value> | -d <value>] [-s ] [--saveSbom ]
149
81
150
82
FLAGS
151
- -d, --dir=<value> The directory to scan in order to create a cyclonedx sbom
152
- -f, --file=<value> The file path of an existing cyclonedx sbom to scan for EOL
153
- -p , --purls=<value> The file path of a list of purls to scan for EOL
154
- -s, --save Save the generated report as herodevs.report .json in the scanned directory
83
+ -d, --dir=<value> [default: <current directory>] The directory to scan in order to create a cyclonedx SBOM
84
+ -f, --file=<value> The file path of an existing cyclonedx SBOM to scan for EOL
85
+ -s , --save Save the generated report as herodevs.report.json in the scanned directory
86
+ --saveSbom Save the generated SBOM as herodevs.sbom .json in the scanned directory
155
87
156
88
GLOBAL FLAGS
157
89
--json Format output as json.
158
90
159
91
DESCRIPTION
160
- Scan a given sbom for EOL data
92
+ Scan a given SBOM for EOL data
161
93
162
94
EXAMPLES
163
- $ hd scan eol --dir=./my-project
164
-
165
- $ hd scan eol --file=path/to/sbom.json
95
+ Default behavior (no command or flags specified)
166
96
167
- $ hd scan eol --purls=path/to/purls.json
97
+ $ hd
168
98
169
- $ hd scan eol -a --dir=./my-project
170
- ```
99
+ Equivalent to
171
100
172
- _ See code: [ src/commands/ scan/ eol.ts ] ( https://github.com/herodevs/cli/blob/v2.0.0-beta.4/src/commands/scan/eol.ts ) _
101
+ $ hd scan eol --dir .
173
102
174
- ## ` hd scan sbom `
103
+ Skip SBOM generation and specify an existing file
175
104
176
- Scan a SBOM for purls
105
+ $ hd scan eol --file /path/to/sbom.json
177
106
178
- ```
179
- USAGE
180
- $ hd scan sbom [--json] [-f <value>] [-d <value>] [-s] [-b]
107
+ Save the report or SBOM to a file
181
108
182
- FLAGS
183
- -b, --background Run the scan in the background
184
- -d, --dir=<value> The directory to scan in order to create a cyclonedx sbom
185
- -f, --file=<value> The file path of an existing cyclonedx sbom to scan for EOL
186
- -s, --save Save the generated SBOM as herodevs.sbom.json in the scanned directory
109
+ $ hd scan eol --save --saveSbom
187
110
188
- GLOBAL FLAGS
189
- --json Format output as json.
111
+ Output the report in JSON format (for APIs, CI, etc.)
190
112
191
- DESCRIPTION
192
- Scan a SBOM for purls
193
-
194
- EXAMPLES
195
- $ hd scan sbom --dir=./my-project
196
-
197
- $ hd scan sbom --file=path/to/sbom.json
113
+ $ hd scan eol --json
198
114
```
199
115
200
- _ See code: [ src/commands/scan/sbom .ts] ( https://github.com/herodevs/cli/blob/v2.0.0-beta.4/src/commands/scan/sbom .ts ) _
116
+ _ See code: [ src/commands/scan/eol .ts] ( https://github.com/herodevs/cli/blob/v2.0.0-beta.4/src/commands/scan/eol .ts ) _
201
117
202
118
## ` hd update [CHANNEL] `
203
119
@@ -250,7 +166,7 @@ it contains build tools for most project types and will provide best results whe
250
166
#### GitHub Actions
251
167
252
168
``` yaml
253
- # .github/workflows/herodevs-eol-scan.yml
169
+ # # .github/workflows/herodevs-eol-scan.yml
254
170
name : HeroDevs EOL Scan
255
171
256
172
on :
@@ -295,7 +211,7 @@ all requirements before the scan step.
295
211
# ### GitHub Actions
296
212
297
213
` ` ` yaml
298
- # .github/workflows/herodevs-eol-scan.yml
214
+ ## .github/workflows/herodevs-eol-scan.yml
299
215
name: HeroDevs EOL Scan
300
216
301
217
on:
@@ -328,4 +244,4 @@ eol-scan:
328
244
script:
329
245
- echo # Prepare environment, install tooling, perform setup, etc.
330
246
- npx @herodevs/cli@beta
331
- ` ` `
247
+ ` ` `
0 commit comments