> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gable.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# gable lineage scan

Scan a project for data lineage using static code analysis (SCA).

## Usage

```bash theme={null}
gable lineage scan [OPTIONS]
```

## Options

| Option                         | Type             | Required     | Default | Description                                                                   |                                              |
| ------------------------------ | ---------------- | ------------ | ------- | ----------------------------------------------------------------------------- | -------------------------------------------- |
| `--project-root`               | path             | ✓            |         | The root directory of the project that will be analyzed.                      |                                              |
| `--language`                   | `java`           | `typescript` |         | java                                                                          | The programming language of the project.     |
| `--build-command`              | text             |              |         | The build command used to build the project (e.g. mvn clean install).         |                                              |
| `--java-version`               | text             |              | 17      | The version of Java used to build the project.                                |                                              |
| `--dataflow-config-file`       | path             |              |         | The path to the dataflow config JSON file.                                    |                                              |
| `--dataflow-config-files`      | text             |              |         | Multi option for dataflow config files. Overridden by --dataflow-config-file. |                                              |
| `--schema-depth`               | integer          |              |         | The max depth of the schemas to be extracted.                                 |                                              |
| `--output`                     | path             |              |         | File path to output results.                                                  |                                              |
| `--sca-mode`                   | `asset-detector` | `prime`      |         | asset-detector                                                                | Select which sca backend to use for the scan |
| `--prime-annotation`           | text             |              |         | Prime annotation used for analysis. Can be repeated.                          |                                              |
| `--prime-exclude-pattern`      | text             |              |         | Prime exclusion pattern. Repeat the flag for multiple patterns.               |                                              |
| `--prime-rules-file`           | path             |              |         | Prime rules file path.                                                        |                                              |
| `--prime-analysis-config-file` | path             |              |         | Prime analysis config file path.                                              |                                              |
| `--prime-debug`                | boolean          |              | false   | Enable prime debug mode.                                                      |                                              |
| `--memopt-compress-program`    | boolean          |              | false   | Enable prime memory optimization                                              |                                              |
| `--gable-data-encryption-key`  | text             |              |         | Encryption key for Gable data.                                                |                                              |

## Example

```bash theme={null}
gable lineage scan --project-root ./path/to/project --language java --build-command "mvn clean install" --java-version 17
```
