Skip to main content
Scan a project for data lineage using static code analysis (SCA).

Usage

gable lineage scan [OPTIONS]

Options

OptionTypeRequiredDefaultDescription
--project-rootpathThe root directory of the project that will be analyzed.
--languagejavatypescriptjavaThe programming language of the project.
--build-commandtextThe build command used to build the project (e.g. mvn clean install).
--java-versiontext17The version of Java used to build the project.
--dataflow-config-filepathThe path to the dataflow config JSON file.
--dataflow-config-filestextMulti option for dataflow config files. Overridden by —dataflow-config-file.
--schema-depthintegerThe max depth of the schemas to be extracted.
--outputpathFile path to output results.
--sca-modeasset-detectorprimeasset-detectorSelect which sca backend to use for the scan
--prime-annotationtextPrime annotation used for analysis. Can be repeated.
--prime-exclude-patterntextPrime exclusion pattern. Repeat the flag for multiple patterns.
--prime-rules-filepathPrime rules file path.
--prime-analysis-config-filepathPrime analysis config file path.
--prime-debugbooleanfalseEnable prime debug mode.
--memopt-compress-programbooleanfalseEnable prime memory optimization
--gable-data-encryption-keytextEncryption key for Gable data.

Example

gable lineage scan --project-root ./path/to/project --language java --build-command "mvn clean install" --java-version 17