Skip to content

Overview

CommandPurposeKey Use Cases
splitSplit dump into per-table SQL filesWork on individual tables, parallel processing
mergeMerge per-table files into single dumpReassemble after editing, restore preparation
analyzeRead-only statistics about tablesPlanning, size estimation, table discovery
convertTransform between MySQL/PostgreSQL/SQLite/MSSQLDatabase migrations, environment portability
validateCheck syntax, encoding, PK/FK integrityCI gates, backup verification, pre-restore checks
sampleCreate reduced FK-consistent datasetsDev/CI seeding, testing with realistic data
shardExtract tenant-specific dataMulti-tenant isolation, tenant exports
diffCompare two SQL dumps for changesSchema migrations, change detection, auditing
redactAnonymize PII in SQL dumpsGDPR compliance, dev data, safe sharing
graphGenerate ERD diagrams (HTML, DOT, Mermaid)Schema visualization, documentation
orderReorder dump in topological FK orderSafe imports, cycle detection, DROP order
queryRun SQL analytics on dumps with DuckDBAd-hoc queries, data exploration
completionsGenerate shell completion scriptsCLI productivity

Most commands support these flags (availability varies):

FlagDescriptionAvailable In
-d, --dialectOverride dialect auto-detectionMost commands (except convert which uses --from/--to)
-p, --progressShow progress barsplit, analyze, merge, sample, shard, convert, validate, diff, redact, graph
--dry-runPreview without writing outputsplit, merge, sample, shard, convert, redact, order
--jsonMachine-readable JSON outputsplit, analyze, merge, sample, shard, convert, validate, redact, graph
--fail-fastStop on first error (for glob patterns)split, analyze, convert, validate

For faster typing, all commands have short aliases:

CommandAliasCommandAlias
splitspdiffdf
analyzeanredactrd
mergemggraphgr
samplesaorderord
shardshqueryqy
convertcv
validateval
GoalCommand(s)
Check if dump is validvalidate --strict
Understand dump contentsanalyze
Edit specific tablessplit → edit → merge
Create dev datasetsample --preserve-relations
Export tenant datashard --tenant-value
Convert MySQL → PostgreSQLconvert --to postgres
Validate in CIvalidate "*.sql" --json
Compare two dumpsdiff old.sql new.sql
Anonymize PIIredact
Visualize schemagraph
Safe import orderorder
Query without restorequery