Skip to content
KitploitKITPLOIT
ИнструментыЭксплойтыБлог
Log in
Отправить
ИнструментыЭксплойтыБлог
Отправить

Инструменты для хакинга, пентеста и кибербезопасности — ваш арсенал защиты!

Kitploit — это каталог инструментов для хакинга, кибербезопасности и пентестинга. Находите последние обновления проектов для поиска уязвимостей, анализа систем, автоматизации тестирования и усиления вашей безопасности.

ЛентыКонтактыКонфиденциальность© 2026 Kitploit

Каталог инструментов

Категории

Все категории
Loading categories
cyclonedx-cli — CLI для создания, анализа, объединения, сравнения, проверки, подписания и конвертации CycloneDX SBOM в форматах JSON, XML, Protobuf, CSV и SPDX. | Kitploit
Инструменты/GitHubGitHub/cyclonedx/cyclonedx-cli
Оборонительные ИнструментыКриптографияDevSecOpsУтилиты и фреймворкиБезопасность Цепочки ПоставокТоп в Безопасность Цепочки Поставок №13
GitHubcyclonedx/cyclonedx-cli

cyclonedx-cli

CLI для создания, анализа, объединения, сравнения, проверки, подписания и конвертации CycloneDX SBOM в форматах JSON, XML, Protobuf, CSV и SPDX.

Репозиторий
54783562 месяцев назадПроверено Kitploit

Популярное

Смотреть все →

Откройте для себя самые используемые инструменты нашего сообщества.

Изучить все инструменты

Просмотрите нашу коллекцию инструментов

Смотреть все инструменты →
Сайт
Поделиться

Docker Image License Website Slack Invite Group Discussion Twitter

   ______           __                 ____ _  __    ________    ____
  / ____/_  _______/ /___  ____  ___  / __ \ |/ /   / ____/ /   /  _/
 / /   / / / / ___/ / __ \/ __ \/ _ \/ / / /   /   / /   / /    / /
/ /___/ /_/ / /__/ / /_/ / / / /  __/ /_/ /   |   / /___/ /____/ /
\____/\__, /\___/_/\____/_/ /_/\___/_____/_/|_|   \____/_____/___/
     /____/

Usage:
  cyclonedx [command] [options]

Options:
  --version         Show version information
  -?, -h, --help    Show help and usage information

Commands:
  add                         Add information to a BOM (currently supports files)
  analyze                     Analyze a BOM file
  convert                     Convert between different BOM formats
  diff <from-file> <to-file>  Generate a BOM diff
  keygen                      Generates an RSA public/private key pair for BOM signing
  merge                       Merge two or more BOMs
  sign                        Sign a BOM or file
  validate                    Validate a BOM
  verify                      Verify signatures in a BOM

Инструмент командной строки CycloneDX в настоящее время поддерживает анализ BOM-файлов, их изменение, сравнение, слияние, преобразование форматов, подписание и проверку подписей.

Поддерживается преобразование между CycloneDX XML, JSON, Protobuf, CSV и SPDX JSON v2.3.

Бинарные файлы можно загрузить со страницы релизов.

Примечание: инструмент командной строки CycloneDX создан для сценариев автоматизации. Любые команды, имеющие опцию --input-file, также поддерживают ввод данных из stdin. Аналогично любые команды, имеющие опцию --output-file, поддерживают вывод в stdout. Однако вам нужно будет указать форматы ввода/вывода.

Например:
cat bom.json | cyclonedx-cli convert --input-format json --output-format xml > bom.xml

Команды

Команда Add

Подкоманда Add File

files
  Add files to a BOM

Usage:
  cyclonedx add files [options]

Options:
  --input-file <input-file>                       Input BOM filename.
  --no-input                                      Use this option to indicate that there is no input BOM.
  --output-file <output-file>                     Output BOM filename, will write to stdout if no value provided.
  --input-format <autodetect|json|protobuf|xml>   Specify input file format.
  --output-format <autodetect|json|protobuf|xml>  Specify output file format.
  --base-path <base-path>                         Base path for directory to process (defaults to current working directory if omitted).
  --include <include>                             Apache Ant style path and file patterns to specify what to include (defaults to all files, separate patterns with a space).
  --exclude <exclude>                             Apache Ant style path and file patterns to specify what to exclude (defaults to none, separate patterns with a space).

Примеры

Создание BOM из исходного кода, исключая каталог Git-репозитория:
cyclonedx-cli add files --no-input --output-format json --exclude /.git/**

Добавление файлов результатов сборки из каталога bin в существующий BOM:
cyclonedx-cli add files --input-file bom.json --output-format json --base-path bin

Команда Analyze

analyze
  Analyze a BOM file

Usage:
  cyclonedx analyze [options]

Options:
  --input-file <input-file>                      Input BOM filename, will read from stdin if no value provided.
  --input-format <autodetect|json|protobuf|xml>  Specify input file format.
  --output-format <json|text>                    Specify output format (defaults to text).
  --multiple-component-versions                  Report components that have multiple versions in use.

Примеры

Вывод отчёта о компонентах, которые включаются несколько раз с разными версиями:
cyclonedx-cli analyze --input-file sbom.xml --multiple-component-versions

Команда Convert

convert
  Convert between different BOM formats

Usage:
  cyclonedx convert [options]

Options:
  --input-file <input-file>                                    Input BOM filename, will read from stdin if no value provided.
  --output-file <output-file>                                  Output BOM filename, will write to stdout if no value provided.
  --input-format <autodetect|csv|json|protobuf|spdxjson|xml>   Specify input file format.
  --output-format <autodetect|csv|json|protobuf|spdxjson|xml>  Specify output file format.
  --output-version <v1_0|v1_1|v1_2|v1_3|v1_4|v1_5|v1_6|v1_7>   Specify output BOM specification version. (ignored for CSV and SPDX formats)

Примеры

Преобразование из формата XML в JSON:
cyclonedx-cli convert --input-file sbom.xml --output-file sbom.json

Преобразование из формата XML в JSON и передача вывода через конвейер дополнительным инструментам:
cyclonedx-cli convert --input-file sbom.xml --output-format json | grep "somthing"

Формат CSV

Формат CSV является ограниченным представлением списка компонентов в BOM.

Его цель — предоставить пользователям простой способ создавать и использовать BOM-файлы для простых сценариев, включая простые случаи миграции данных.

Обязательными являются только поля компонента name и version. Остальные можно оставить пустыми или опустить соответствующие столбцы.

example.csv

Формат SPDX

Преобразование между форматами SPDX и CycloneDX может привести к потере некоторой информации. Функциональность преобразования предоставляется библиотекой CycloneDX.Spdx.Interop, которая является частью проекта библиотеки CycloneDX .NET.

Более подробную информацию о том, какая информация теряется, см. на странице проекта CycloneDX .NET Library.

Команда Diff

diff
  Generate a BOM diff

Usage:
  cyclonedx diff <from-file> <to-file> [options]

Arguments:
  <from-file>  From BOM filename.
  <to-file>    To BOM filename.

Options:
  --from-format <autodetect|json|protobuf|xml>  Specify from file format.
  --to-format <autodetect|json|protobuf|xml>    Specify to file format.
  --output-format <json|text>                   Specify output format (defaults to text).
  --component-versions                          Report component versions that have been added, removed or modified.

Примеры

Вывод отчёта о компонентах с изменёнными версиями:
cyclonedx-cli diff sbom-from.xml sbom-to.xml --component-versions

Команда Keygen

keygen
  Generates an RSA public/private key pair for BOM signing

Usage:
  cyclonedx keygen [options]

Options:
  --private-key-file <private-key-file>  Filename for generated private key file (defaults to "private.key")
  --public-key-file <public-key-file>    Filename for generated public key file (defaults to "public.key")

Команда Merge

merge
  Merge two or more BOMs

Usage:
  cyclonedx merge [options]
Скачать инструмент