Chapter 13: CLI リファレンス

コマンドラインからの操作・自動化(v2.0)

基本構文

Dependa.exe <command> [options]

コマンド一覧

コマンド説明
helpヘルプを表示します。
versionバージョン情報を表示します。
scan指定したパスのプロジェクトをスキャンします。
importSBOM ファイル(CycloneDX / SPDX)をインポートします。
reviewレビューセッションのステータスを表示・更新します。

scan コマンドのオプション

オプション説明
--path <path>スキャン対象のプロジェクトフォルダまたはファイルのパス(必須)。
--output <path>結果の出力先パス。JSON ファイルとして保存されます。
--lang <ja|en>レポートの言語を指定します(デフォルト: 設定に従う)。
--accept-terms利用規約に同意します(初回実行時に必要)。
--verbose詳細なログを出力します。
--use-online-vulnOSV API によるオンライン脆弱性照合を有効にします。Pro
--use-online-enrichmentPyPI / npm / NuGet によるオンライン補完を有効にします。Pro
--ai-prompt <type>AI プロンプトを生成します。type: VulnerabilityRemediation, LicenseReview, DeltaScanReview

import コマンドのオプション

オプション説明
--file <path>インポートする SBOM ファイルのパス(必須)。CycloneDX / SPDX 形式を自動判別します。
--output <path>結果の出力先パス。
--lang <ja|en>レポートの言語を指定します。
--accept-terms利用規約に同意します。

終了コード

コード意味
0成功(ポリシー違反なし)
1一般エラー
2ポリシー違反が検出された(High Risk アイテムまたは Prohibited ライセンス)
3Pro ライセンスが必要な機能が使用された
4データパック検証失敗
5不正な引数
6利用規約に未同意
7Integrity 検証失敗
8SBOM 形式が認識できない

使用例

基本スキャン

Dependa.exe scan --path C:\my-project --accept-terms

SBOM インポート

Dependa.exe import --file C:\sbom\cyclonedx.json --output C:\reports\result.json

結果を JSON に出力

Dependa.exe scan --path C:\my-project --output C:\reports\result.json --lang ja

Pro 機能付きスキャン

Dependa.exe scan --path C:\my-project --use-online-vuln --use-online-enrichment --verbose

AI プロンプト生成付きスキャン

Dependa.exe scan --path C:\my-project --ai-prompt VulnerabilityRemediation

Chapter 13: CLI Reference

Command-line usage and automation (v2.0)

Basic Syntax

Dependa.exe <command> [options]

Commands

CommandDescription
helpDisplay help information.
versionDisplay version information.
scanScan a project at the specified path.
importImport an SBOM file (CycloneDX / SPDX).
reviewDisplay or update review session status.

Scan Command Options

OptionDescription
--path <path>Path to the project folder or file to scan (required).
--output <path>Output path for results. Saved as a JSON file.
--lang <ja|en>Specify the report language (default: follows settings).
--accept-termsAccept the terms of use (required on first run).
--verboseOutput detailed logs.
--use-online-vulnEnable online vulnerability lookup via OSV API. Pro
--use-online-enrichmentEnable online enrichment via PyPI / npm / NuGet. Pro
--ai-prompt <type>Generate an AI prompt. Types: VulnerabilityRemediation, LicenseReview, DeltaScanReview

Import Command Options

OptionDescription
--file <path>Path to the SBOM file to import (required). Auto-detects CycloneDX / SPDX format.
--output <path>Output path for results.
--lang <ja|en>Specify the report language.
--accept-termsAccept the terms of use.

Exit Codes

CodeMeaning
0Success (no policy violations)
1General error
2Policy violation detected (High Risk items or Prohibited license)
3Pro license required for the requested feature
4Data pack verification failed
5Invalid arguments
6Terms of use not accepted
7Integrity verification failed
8SBOM format not recognized

Usage Examples

Basic Scan

Dependa.exe scan --path C:\my-project --accept-terms

SBOM Import

Dependa.exe import --file C:\sbom\cyclonedx.json --output C:\reports\result.json

Output Results to JSON

Dependa.exe scan --path C:\my-project --output C:\reports\result.json --lang en

Scan with Pro Features

Dependa.exe scan --path C:\my-project --use-online-vuln --use-online-enrichment --verbose

Scan with AI Prompt Generation

Dependa.exe scan --path C:\my-project --ai-prompt VulnerabilityRemediation