From f337b548b3ea05b1f768886ee9182d2481fa3382 Mon Sep 17 00:00:00 2001 From: Wen Zhou Date: Fri, 9 Dec 2022 16:00:14 +0100 Subject: [PATCH] docs: update binary name to match "--help" output --- README.md | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index cd59de2..c99b6a5 100755 --- a/README.md +++ b/README.md @@ -36,12 +36,12 @@ The CycloneDX CLI tool currently supports BOM analysis, modification, diffing, m Conversion is supported between CycloneDX XML, JSON, Protobuf, CSV, and SPDX JSON v2.2. -Binaries can be downloaded from the [releases page](https://github.com/CycloneDX/cyclonedx-cli/releases). +Binaries can be downloaded from the [releases page](https://github.com/CycloneDX/cyclonedx-cli/releases). It is better to rename binaries to "cyclonedx" before execution as CLI. Note: The CycloneDX CLI tool is built for automation use cases. Any commands that have the `--input-file` option also support feeding input from stdin. Likewise, any commands that have the `--output-file` option support output to stdout. However, you will need to supply the input/output formats. For example: -`cat bom.json | cyclonedx-cli convert --input-format json --output-format xml > bom.xml` +`cat bom.json | cyclonedx convert --input-format json --output-format xml > bom.xml` # Commands @@ -70,10 +70,10 @@ Options: #### Examples Generating a source code BOM, excluding Git repository directory: -`cyclonedx-cli add files --no-input --output-format json --exclude /.git/**` +`cyclonedx add files --no-input --output-format json --exclude /.git/**` Adding build output files, from `bin` directory, to existing BOM: -`cyclonedx-cli add files --input-file bom.json --output-format json --base-path bin` +`cyclonedx add files --input-file bom.json --output-format json --base-path bin` ## Analyze Command @@ -94,7 +94,7 @@ Options: ### Examples Reporting on components that are included multiple times with different versions: -`cyclonedx-cli analyze --input-file sbom.xml --multiple-component-versions` +`cyclonedx analyze --input-file sbom.xml --multiple-component-versions` ## Convert Command @@ -116,10 +116,10 @@ Options: ### Examples Converting from XML to JSON format: -`cyclonedx-cli convert --input-file sbom.xml --output-file sbom.json` +`cyclonedx convert --input-file sbom.xml --output-file sbom.json` Converting from XML to JSON format and piping output to additional tools: -`cyclonedx-cli convert --input-file sbom.xml --output-format json | grep "somthing"` +`cyclonedx convert --input-file sbom.xml --output-format json | grep "somthing"` ### CSV Format @@ -166,7 +166,7 @@ Options: ### Examples Reporting on components with version changes: -`cyclonedx-cli diff sbom-from.xml sbom-to.xml --component-versions` +`cyclonedx diff sbom-from.xml sbom-to.xml --component-versions` ## Keygen Command @@ -208,10 +208,10 @@ described in the metadata component element. ### Examples Merge two XML formatted BOMs: -`cyclonedx-cli merge --input-files sbom1.xml sbom2.xml --output-file sbom_all.xml` +`cyclonedx merge --input-files sbom1.xml sbom2.xml --output-file sbom_all.xml` Merging two BOMs and piping output to additional tools: -`cyclonedx-cli merge --input-files sbom1.xml sbom2.xml --output-format json | grep "something"` +`cyclonedx merge --input-files sbom1.xml sbom2.xml --output-format json | grep "something"` ## Sign Command @@ -269,7 +269,7 @@ Options: ### Examples Validate BOM and return non-zero exit code (handy for automatically "breaking" a build, etc) -`cyclonedx-cli validate --input-file sbom.xml --fail-on-errors` +`cyclonedx validate --input-file sbom.xml --fail-on-errors` ## Verify Command @@ -310,14 +310,14 @@ Options: # Docker Image -The CycloneDX CLI tool can also be run using docker `docker run cyclonedx/cyclonedx-cli`. +The CycloneDX CLI tool can also be run using docker `docker run cyclonedx/cyclonedx`. # Homebrew For Linux and MacOS, the CLI can be installed via the [CycloneDX Homebrew tap](https://github.com/CycloneDX/homebrew-cyclonedx): ```shell -brew install cyclonedx/cyclonedx/cyclonedx-cli +brew install cyclonedx/cyclonedx/cyclonedx ``` # Supported Platforms