Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run cyclonedx-cli #378

Open
spnzig opened this issue Jul 2, 2024 · 3 comments
Open

How to run cyclonedx-cli #378

spnzig opened this issue Jul 2, 2024 · 3 comments

Comments

@spnzig
Copy link

spnzig commented Jul 2, 2024

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

@mtsfoni
Copy link
Contributor

mtsfoni commented Jul 2, 2024

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
Copy link
Author

spnzig commented Jul 2, 2024

My bad I couldn't run it in linux.

@readonlyuser1
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants