Skip to content

Commit 79bca05

Browse files
committed
Add validate command to README
1 parent 586db69 commit 79bca05

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Commands:
1818
convert Convert between different SBOM formats
1919
diff <from-file> <to-file> Generate an SBOM diff
2020
merge Merge two or more SBOMs
21+
validate Validate an SBOM
2122
```
2223

2324
The CycloneDX CLI tool currently supports SBOM analysis, diffing, merging and format conversions.
@@ -94,6 +95,21 @@ Options:
9495
--component-versions Report component versions that have been added, removed or modified.
9596
```
9697

98+
## Validate Command
99+
100+
```
101+
validate:
102+
Validate an SBOM
103+
104+
Usage:
105+
cyclonedx validate [options]
106+
107+
Options:
108+
--input-file <input-file> Input SBOM filename, will read from stdin if no value provided.
109+
--input-format <autodetect|json|json_v1_2|xml|xml_v1_0|xml_v1_1|xml_v1_2> Specify input file format.
110+
--fail-on-errors Fail on validation errors (return a non-zero exit code)
111+
```
112+
97113
## Docker Image
98114

99115
The CycloneDX CLI tool can also be run using docker `docker run cyclonedx/cyclonedx-cli`.

0 commit comments

Comments
 (0)