cyclonedx-cli icon indicating copy to clipboard operation
cyclonedx-cli copied to clipboard

How to run cyclonedx-cli

Open spnzig opened this issue 1 year ago • 3 comments

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

spnzig avatar Jul 02 '24 07:07 spnzig

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.

mtsfoni avatar Jul 02 '24 07:07 mtsfoni

My bad I couldn't run it in linux.

spnzig avatar Jul 02 '24 10:07 spnzig

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

readonlyuser1 avatar Jul 07 '24 00:07 readonlyuser1