@dataparade/cli
v0.0.13
Published
dataPARADE CLI — scan codebases for privacy and security data flows
Maintainers
Readme
dataPARADE CLI
The dataPARADE CLI (@dataparade/cli) scans a codebase and produces a dataflow.json file you can import into the DataParade web app. It runs a structural pipeline (ingest → analyzers → classifier → data-flow detector → graph mapping) and writes a JSON wrapper containing a DiagramGraphJson plus scan metadata.
- Primary command:
scan <path> - Supported languages: TypeScript, JavaScript, Python, Go, Java, Kotlin, C++, C#/.NET, Terraform
- License: GPL-3.0-or-later — see
LICENSE. Source: DataParade-io/dataparade-cli
Full documentation: app.dataparade.io/docs/cli-import-and-zip
Quick start
npx @dataparade/cli scan .Or with pnpm:
pnpm dlx @dataparade/cli scan .What to expect:
- Progress messages such as
[scan] starting scan for .and[scan] output: Scan complete. - On success:
[scan] dataflow.json written to /absolute/path/to/dataflow.json - By default,
dataflow.jsonis created in the current working directory (override with-o/--output).
npx @dataparade/cli scan path/to/your/project --output scan-my-project-dataflow.jsonList commands and options: npx @dataparade/cli --help and npx @dataparade/cli scan --help.
Upload to dashboard
After a scan, the CLI auto-uploads dataflow.json by default (unless you opt out). This creates an import preview draft in the web app — not a finished assessment.
- With a workspace API key (
DATAPARADE_WORKSPACE_API_KEYfrom Workspace → Access keys): prints a dashboard link (?importDraft=) for that workspace. - Without a workspace key: prints a sign-up link (
/preview/cli/<token>). Create an account to open Preview & Edit on your dashboard. - Opt out:
--skip-auto-uploadorDATAPARADE_SKIP_AUTO_UPLOAD=true - Upload alone does not consume scan quota
npx @dataparade/cli upload ./dataflow.json --project-name "My service"Full guide: Upload to dashboard
Output: dataflow.json
By default, the CLI writes ./dataflow.json in the current working directory.
- Wrapper with
schemaVersion,graph(DiagramGraphJson: nodes, edges, viewport), andmetadata(files scanned, duration, etc.) - The
graphsection is compatible with the DataParade import flow - Most node properties are emitted with
nulldefaults; only a subset are filled from code patterns — complete the rest in Preview & Edit
Full guide: Output and results
Documentation
| Topic | Link |
|-------|------|
| CLI hub (all topics) | CLI Run and Export |
| Scan arguments & flags | Scan arguments |
| dataparade.config.json | Config file |
| Environment variables | Environment variables |
| AI inference | AI inference |
| Scan patterns (YAML) | Scan patterns |
License
GPL-3.0-or-later · Source: github.com/DataParade-io/dataparade-cli
