-
-
Notifications
You must be signed in to change notification settings - Fork 0
CLI
Praveen Kumar edited this page Jul 11, 2026
·
3 revisions
Entry point: cleanframe (console script from cleanframe.cli:main).
cleanframe --help
cleanframe <subcommand> --helpProfile a file and write an HTML report (no transforms applied).
cleanframe report examples/messy_customers.csv
cleanframe report data.csv --schema examples/customer.schema.yaml -o report.htmlFull pipeline: profile → detect → plan → execute → save artifacts.
cleanframe clean examples/messy_customers.csv \
--schema examples/customer.schema.yaml \
--mode auto \
--out-dir out/Common flags:
| Flag | Meaning |
|---|---|
--schema PATH |
Target schema YAML |
--mode review|auto|strict |
Confidence / failure policy |
--llm provider/model |
Optional LLM planner |
--out-dir DIR |
Write cleaned data, recipe, code, report |
--out PATH |
Cleaned data path only |
Replay a saved recipe (deterministic, no LLM).
cleanframe apply new.csv --recipe customer.recipe.yaml --out clean.csv
cleanframe apply new.csv --recipe customer.recipe.yaml --force # ignore drift (dangerous)| Flag | Meaning |
|---|---|
--recipe PATH |
Required recipe YAML |
--mode |
Execution mode |
--force |
Set on_drift=ignore
|
--out PATH |
Output path |
Detect drift and optionally write a patched recipe.
cleanframe suggest new.csv --recipe customer.recipe.yaml
cleanframe suggest new.csv --recipe customer.recipe.yaml --update -o patched.recipe.yamlDraft a target schema from data.
cleanframe infer-schema examples/messy_customers.csv -o examples/customer.schema.yamlList registered plugins (built-ins + any you imported).
cleanframe detectors
cleanframe ops- Drift with default apply → non-zero exit / raised error
- Missing input file → error
- Validation
on_fail: errororstrictmode → error