Dependency Analytics Java API CLI

USAGE:
  java -jar trustify-da-java-client-cli.jar <COMMAND> <ARGUMENTS> [OPTIONS]

COMMANDS:
  stack <file_path> [--summary|--html]
    Perform stack analysis on the specified manifest file
    Options:
      --summary    Output summary in JSON format
      --html       Output full report in HTML format
      (default)    Output full report in JSON format

  component <file_path> [--summary]
    Perform component analysis on the specified manifest file
    License compatibility checking is included by default in JSON output
    Options:
      --summary    Output summary in JSON format (without license check)
      (default)    Output full report in JSON format (includes license summary)

  sbom <file_path> [--output <path>]
    Generate a CycloneDX SBOM from the specified manifest file (no backend call)
    Options:
      --output <path>  Write SBOM JSON to the specified file
      (default)        Print SBOM JSON to stdout

  license <file_path>
    Display project license information from manifest and LICENSE file in JSON format

  image <image_ref> [<image_ref>...] [--summary|--html]
    Perform security analysis on the specified container image(s)
    Arguments:
      <image_ref>  Container image reference (e.g., nginx:latest, registry.io/image:tag)
                   Multiple images can be analyzed at once
                   Optionally specify platform with ^^ notation (e.g., image:tag^^linux/amd64)
    Options:
      --summary    Output summary in JSON format
      --html       Output full report in HTML format
      (default)    Output full report in JSON format

OPTIONS:
  -h, --help     Show this help message

ENVIRONMENT VARIABLES:
  TRUSTIFY_DA_BACKEND_URL      Backend URL for the Trustify Dependency Analytics service (required)
  TRUSTIFY_DA_LICENSE_CHECK    Enable/disable license check in component analysis (default: true)

EXAMPLES:
  export TRUSTIFY_DA_BACKEND_URL=https://your-backend.url

  # File-based analysis
  java -jar trustify-da-java-client-cli.jar stack /path/to/pom.xml
  java -jar trustify-da-java-client-cli.jar stack /path/to/package.json --summary
  java -jar trustify-da-java-client-cli.jar stack /path/to/build.gradle --html
  java -jar trustify-da-java-client-cli.jar component /path/to/requirements.txt
  java -jar trustify-da-java-client-cli.jar stack /path/to/Cargo.toml

  # SBOM generation
  java -jar trustify-da-java-client-cli.jar sbom /path/to/pom.xml
  java -jar trustify-da-java-client-cli.jar sbom /path/to/package.json --output sbom.json

  # License information
  java -jar trustify-da-java-client-cli.jar license /path/to/pom.xml

  # Container image analysis
  java -jar trustify-da-java-client-cli.jar image nginx:latest
  java -jar trustify-da-java-client-cli.jar image nginx:latest docker.io/library/node:18
  java -jar trustify-da-java-client-cli.jar image nginx:latest^^linux/amd64 --summary
  java -jar trustify-da-java-client-cli.jar image quay.io/redhat/ubi8:latest --html
