CycloneDX / cyclonedx-cli

CycloneDX CLI tool for SBOM analysis, merging, diffs and format conversions.
https://cyclonedx.org/
Apache License 2.0
317 stars 62 forks source link

How to run cyclonedx-cli #378

Open spnzig opened 4 months ago

spnzig commented 4 months ago

Is there any document to show the installation steps and how to run this tool?

mtsfoni commented 4 months ago

There is a docker container that can be used with the -rm option: docker run --rm -it cyclonedx/cyclonedx-cli --help This should probably be described in the readme.

Or you download the binary from the release page. This is actually described in the readme.

spnzig commented 4 months ago

My bad I couldn't run it in linux.

readonlyuser1 commented 4 months ago
CYCLONEDXCLI_LATEST_URL=`curl -s https://api.github.com/repos/CycloneDX/cyclonedx-cli/releases/latest | jq -r '.assets[] | select(.name | contains ("-linux-x64")) | .browser_download_url' | grep -v md5`
mkdir -p /opt/cyclonedx-cli
wget -q -O /opt/cyclonedx-cli/cyclonedx-cli ${CYCLONEDXCLI_LATEST_URL}
chmod +x /opt/cyclonedx-cli/cyclonedx-cli
ln -s /opt/cyclonedx-cli/cyclonedx-cli /usr/local/bin/cyclonedx-cli
cyclonedx-cli -h