Generated from the parser by python docs/make_cli_reference.py; every option below is what relsynth COMMAND --help prints.
relsynth COMMAND [options]
Locations (--source, --target, --synthetic) are written as csv:DIR, parquet:DIR, sqlite:FILE or a database URL (postgresql://, mssql://, oracle://). A plain folder path means CSV. Instead of a location, --source-url-env NAME or --target-url-env NAME names an environment variable that holds the whole URL; --source-password-env NAME supplies only the password. Passwords are never accepted on the command line, and they are masked in all output.
Every command also takes:
| Option | Meaning |
|---|---|
--json |
Print exactly one JSON document on stdout (command, version, exit_code, and the command's results; error and error_type on failure). Progress goes to stderr. |
--log-level debug|info|warning|error |
Progress detail on stderr (default info; RELSYNTH_QUIET=1 sets warning). |
Commands that read a spec also take --set KEY=VALUE (repeatable), which overrides any spec value by its dotted path, for example --set synthesis.seed=7 or --set 'synthesis.scale.tables={customer: 10}' (the value is read as YAML).
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Quality gate failed (--fail-under), or verify found a failing check |
| 2 | Invalid spec or arguments (including a spec that is not valid YAML) |
| 3 | Connection, permission or file error (also a target that exists with if_exists: fail) |
| 4 | Engine failure while fitting or sampling |
| 130 | Interrupted |
| Command | What it does |
|---|---|
introspect |
draft a spec from a database or folder |
check |
validate a spec |
validate |
validate a spec (alias of check) |
plan |
which tables are fitted from in-database statistics (no fitting) |
run |
fit, sample, write and score |
extend |
continue the event histories of a synthetic dataset step by step (new rows per day as CSV deltas) |
verify |
model checks on real data (R1-R7): scorecard, convergence, posterior predictive checks, scale rule, structure, stability |
privacy |
attack a release per person and write a privacy report per release context |
evaluate |
score synthetic data already written |
doctor |
causes and spec fixes for a run's failures |
tune |
run -> doctor -> apply until no fix remains |
model |
the data model as Markdown (Mermaid ER diagram) and JSON |
export-model |
the fitted Bayesian model as JSON, Markdown, PDF and Python |
clone-schema |
create the source's tables (keys, types, indexes) empty in a target |
profile |
row, null and distinct counts computed in the source |
ping |
test a connection |
generators |
installed generator plug-ins and their capabilities |
compute |
GPUs found and the device each kind of generator would get |
version |
versions of relsynth and its main dependencies |
settings |
engine settings: show, explain, validate, template, reference |
autotune |
tune engine settings toward your objectives over several seeds; write the tuned spec and a constraints report |
ir |
IR 2.0 documents: migrate, validate, convert, privacy paths, ODCS, OpenLineage |
gov |
governance: registry, keys, policy, privacy budget, approvals and releases |
Draft a spec from a database or folder.
usage: relsynth introspect [-h] [--source SOURCE] [--source-schema SOURCE_SCHEMA]
[--source-password-env SOURCE_PASSWORD_ENV]
[--source-url-env SOURCE_URL_ENV] [--out OUT] [--name NAME]
[--sample-rows SAMPLE_ROWS] [--include [INCLUDE ...]]
[--exclude [EXCLUDE ...]] [--evidence {names+data,data}]
[--ignore-declared] [--format {auto,v1,ir}] [--json]
[--log-level {debug,info,warning,error}]
| Option | Required | Default | Meaning |
|---|---|---|---|
--source SOURCE |
csv:DIR | parquet:DIR | sqlite:FILE | database URL (postgresql://, mssql://, oracle://, mysql://, mariadb://, databricks://, fabric://, snowflake://, bigquery://); or give --source-url-env | ||
--source-schema SOURCE_SCHEMA |
database schema | ||
--source-password-env SOURCE_PASSWORD_ENV |
environment variable holding the password | ||
--source-url-env SOURCE_URL_ENV |
environment variable holding the whole URL | ||
--out OUT |
spec.yaml |
where the drafted spec is written | |
--name NAME |
draft |
the spec's name | |
--sample-rows SAMPLE_ROWS |
20000 |
random rows read per table | |
--include INCLUDE ... |
table-name patterns to read (regular expressions) | ||
--exclude EXCLUDE ... |
table-name patterns to leave out, e.g. sys.* DatabaseLog | ||
--evidence names+data|data |
names+data |
identify keys and links from values and names (default) or from values only | |
--ignore-declared |
hide the catalog's keys and links and identify them from the data (for testing) | ||
--format auto|v1|ir |
auto |
write a relsynth 1.0 spec or an IR 2.0 document; auto (default) writes IR from release 2.0 and 1.0 before |
Validate a spec.
usage: relsynth check [-h] [--set KEY=VALUE] [--settings FILE] [--connect] [--json]
[--log-level {debug,info,warning,error}]
spec
| Option | Required | Default | Meaning |
|---|---|---|---|
spec |
yes | the YAML specification | |
--set KEY=VALUE |
override a spec value, e.g. --set synthesis.scale.default=2 (repeatable) | ||
--settings FILE |
an engine settings file (or preset:fast | preset:thorough) merged under the spec's synthesis block; see docs/settings.md | ||
--connect |
also connect to the source and find every table |
Validate a spec (alias of check).
usage: relsynth validate [-h] [--set KEY=VALUE] [--settings FILE] [--connect] [--json]
[--log-level {debug,info,warning,error}]
spec
| Option | Required | Default | Meaning |
|---|---|---|---|
spec |
yes | the YAML specification | |
--set KEY=VALUE |
override a spec value, e.g. --set synthesis.scale.default=2 (repeatable) | ||
--settings FILE |
an engine settings file (or preset:fast | preset:thorough) merged under the spec's synthesis block; see docs/settings.md | ||
--connect |
also connect to the source and find every table |
Which tables are fitted from in-database statistics (no fitting).
usage: relsynth plan [-h] [--set KEY=VALUE] [--settings FILE] [--pushdown {auto,on,off}] [--json]
[--log-level {debug,info,warning,error}]
spec
| Option | Required | Default | Meaning |
|---|---|---|---|
spec |
yes | the YAML specification | |
--set KEY=VALUE |
override a spec value, e.g. --set synthesis.scale.default=2 (repeatable) | ||
--settings FILE |
an engine settings file (or preset:fast | preset:thorough) merged under the spec's synthesis block; see docs/settings.md | ||
--pushdown auto|on|off |
override synthesis.pushdown.mode |
Fit, sample, write and score.
usage: relsynth run [-h] [--set KEY=VALUE] [--settings FILE] [--scale SCALE] [--out OUT]
[--target TARGET] [--target-schema TARGET_SCHEMA]
[--target-password-env TARGET_PASSWORD_ENV] [--target-url-env TARGET_URL_ENV]
[--bundle BUNDLE] [--report REPORT] [--no-privacy] [--no-write]
[--datasets DATASETS] [--mode {draw,mean}] [--pushdown {auto,on,off}]
[--seed SEED] [--fail-under SHARE] [--registry REGISTRY] [--context CONTEXT]
[--release-target RELEASE_TARGET] [--source-id SOURCE_ID] [--key KEY]
[--privacy-report PRIVACY_REPORT] [--assess] [--privacy-config PRIVACY_CONFIG]
[--dp] [--epsilon EPSILON] [--dp-unit DP_UNIT] [--dp-statement DP_STATEMENT]
[--json] [--log-level {debug,info,warning,error}]
spec
| Option | Required | Default | Meaning |
|---|---|---|---|
spec |
yes | the YAML specification | |
--set KEY=VALUE |
override a spec value, e.g. --set synthesis.scale.default=2 (repeatable) | ||
--settings FILE |
an engine settings file (or preset:fast | preset:thorough) merged under the spec's synthesis block; see docs/settings.md | ||
--scale SCALE |
size multiplier of the synthetic entities | ||
--out OUT |
output folder for CSV files (default: the spec's target) | ||
--target TARGET |
write to this location instead of the spec's target | ||
--target-schema TARGET_SCHEMA |
database schema | ||
--target-password-env TARGET_PASSWORD_ENV |
environment variable holding the password | ||
--target-url-env TARGET_URL_ENV |
environment variable holding the whole URL | ||
--bundle BUNDLE |
diagnostics_bundle.json |
diagnostics bundle path ('' for none) | |
--report REPORT |
also write the scorecard as Markdown | ||
--no-privacy |
skip distance-to-closest-record checks | ||
--no-write |
score only; write no synthetic data | ||
--datasets DATASETS |
number of synthetic datasets (independent posterior draws) | ||
--mode draw|mean |
posterior draw (default) or posterior means | ||
--pushdown auto|on|off |
override synthesis.pushdown.mode | ||
--seed SEED |
override synthesis.seed | ||
--fail-under SHARE |
quality gate: exit 1 when the share of passed checks is below SHARE (0-1) | ||
--registry REGISTRY |
record a signed manifest of this run in this registry | ||
--context CONTEXT |
intended release context from the organisation policy | ||
--release-target RELEASE_TARGET |
intended target id from the context's allowed_targets | ||
--source-id SOURCE_ID |
the source's id in the organisation policy (selects its privacy domain) | ||
--key KEY |
the operator's private signing key | ||
--privacy-report PRIVACY_REPORT |
privacy_report.json of relsynth privacy for this spec |
||
--assess |
run the privacy assessment against the policy's contexts | ||
--privacy-config PRIVACY_CONFIG |
privacy.yaml for --assess (its contexts are replaced by the policy's) | ||
--dp |
differentially private run (the spec's synthesis.privacy.dp) | ||
--epsilon EPSILON |
this run's epsilon (implies --dp; overrides the spec) | ||
--dp-unit DP_UNIT |
the privacy unit table (default: the spec's, or the policy domain's) | ||
--dp-statement DP_STATEMENT |
also write the DP statement (JSON) here |
Continue the event histories of a synthetic dataset step by step (new rows per day as CSV deltas).
usage: relsynth extend [-h] [--set KEY=VALUE] [--settings FILE] --until UNTIL [--start START]
[--step {hour,day,week,month}] [--dataset DATASET] [--out OUT]
[--with-base] [--seed SEED] [--json]
[--log-level {debug,info,warning,error}]
spec
| Option | Required | Default | Meaning | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
spec |
yes | the YAML specification | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--set KEY=VALUE |
override a spec value, e.g. --set synthesis.scale.default=2 (repeatable) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--settings FILE |
an engine settings file (or preset:fast | preset:thorough) merged under the spec's synthesis block; see docs/settings.md | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--until UNTIL |
yes | end of the extension (date or datetime, exclusive) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--start START |
start of the extension (default: the end of the source's time range) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--step hour|day|week|month |
day |
delta period | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--dataset DATASET |
the base dataset (posterior draw number) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
--out OUT |
deltas |
folder for delta-/.csv
Model checks on real data (R1-R7): scorecard, convergence, posterior predictive checks, scale rule, structure, stability.
Attack a release per person and write a privacy report per release context.
Score synthetic data already written.
Causes and spec fixes for a run's failures.
Run -> doctor -> apply until no fix remains.
The data model as Markdown (Mermaid ER diagram) and JSON.
The fitted Bayesian model as JSON, Markdown, PDF and Python.
Create the source's tables (keys, types, indexes) empty in a target.
Row, null and distinct counts computed in the source.
Test a connection.
Installed generator plug-ins and their capabilities.
GPUs found and the device each kind of generator would get.
Versions of relsynth and its main dependencies. Engine settings: show, explain, validate, template, reference.
Tune engine settings toward your objectives over several seeds; write the tuned spec and a constraints report.
IR 2.0 documents: migrate, validate, convert, privacy paths, ODCS, OpenLineage.
Governance: registry, keys, policy, privacy budget, approvals and releases.
|