● Reference

CLI Reference

Run dbsprout --help for the live command list, or dbsprout <command> --help for any command’s options.

Global Options

FlagDescription
--verbose, -vShow full tracebacks on error
--install-completionInstall shell completion
--show-completionPrint shell completion script
--helpShow help for any command

dbsprout init

Introspect a database schema and generate configuration.

OptionDescription
--dbDatabase URL (env: DBSPROUT_TARGET_DB)
--fileSchema file (.sql, .dbml, .mmd, .puml, .prisma)
--djangoIntrospect Django models
--django-appsComma-separated Django app labels to include
--output-dir, -oOutput directory (default: .)
--dry-runPreview without writing files

dbsprout generate

Generate seed data from the schema snapshot.

OptionDescriptionDefault
--rows, -nRows per table (≥ 1)100
--seed, -sDeterministic seed (≥ 0)42
--output-format, -fsql, csv, json, jsonl, directsql
--output-dir, -oOutput directory./seeds
--dialect, -dSQL dialectpostgresql
--engine, -eheuristic, spec, statistical, finetunedheuristic
--privacyPrivacy tier (local, redacted, cloud)local
--reference-dataReference CSV (file or per-table dir) for --engine statistical
--dbTarget DB URL for direct insertion (env: DBSPROUT_TARGET_DB)
--upsertEmit insert-or-update SQLfalse
--insert-methodDirect insertion: auto, copy, load_data, batchauto
--fileSchema file for --incremental
--incrementalApply only schema-diff-driven updates to existing seed datafalse
--snapshotBase snapshot hash prefixlatest
--loraPath to a .gguf LoRA adapter (requires --engine spec)
--schema-snapshotExplicit schema snapshot path
--configExplicit config path

dbsprout validate

Validate integrity of generated seed data.

OptionDescriptionDefault
--rows, -nRows per table100
--seed, -sSeed42
--engine, -eGeneration engine to validateheuristic
--format, -frich, jsonrich
--reference-dataReference CSV for fidelity comparison
--detectionRun C2ST detection metricsfalse
--outputWrite JSON output to file
--compactMinified JSON outputfalse

dbsprout diff

Report schema changes since the last snapshot.

OptionDescriptionDefault
--dbDatabase URL (env: DBSPROUT_TARGET_DB)
--file, -fSchema file (SQL/DBML/Mermaid/PlantUML/Prisma)
--snapshotBase snapshot hash prefixlatest
--formatrich, jsonrich
--output-dir, -oProject root containing .dbsprout/.

dbsprout report

Generate an HTML report from recorded generation runs — no regeneration.

OptionDescriptionDefault
--output, -oReport destination path./seeds/report.html
--run-idRender a specific historical run idmost recent

dbsprout audit

Show the LLM interaction audit log.

dbsprout audit              # All audit entries
dbsprout audit --last 10    # 10 most recent entries

dbsprout doctor

Diagnose the local environment for common configuration issues (Python version, drivers, models, disk space, secrets, plugins, training accelerator).

OptionDescriptionDefault
--dbDatabase URL to test (env: DBSPROUT_TARGET_DB)
--configConfig file to scan for secretsdbsprout.toml

dbsprout models

List, download, and inspect embedded GGUF models.

dbsprout models list              # Registry + locally installed models
dbsprout models info <model-id>   # Details for one registry model
dbsprout models download <model-id>   # Download into .dbsprout/models/base/

dbsprout plugins

Inspect discovered DBSprout plugins.

dbsprout plugins list                  # Discovered plugins by entry-point group
dbsprout plugins check <group>:<name>  # Validate a plugin loads and conforms

dbsprout train

QLoRA fine-tuning pipeline. Subcommands run the stages individually; the top-level command runs them end to end.

OptionDescriptionDefault
--dbLive database URL to sample (env: DBSPROUT_TARGET_DB)
--sample-rowsRows to sample (≥ 1)1000
--epochsTraining epochs
--output, -oBase directory for artifacts.dbsprout
--seedSampling seed0
--no-pii-redactionDisable PII redaction before serializationfalse
--quietSuppress progress outputfalse
SubcommandDescription
extractExtract a stratified sample from a live DB into Parquet
serializeSerialize Parquet samples into GReaT-style JSONL
runFine-tune a QLoRA adapter on a serialized corpus