Quick start
From an empty terminal to a verified, masked development database — with or without a database of your own.
Run it with no arguments:
safeslice
That is the whole workflow. It connects to your source, reads the schema, asks about the columns it cannot classify, shows exactly what the slice contains before anything moves, loads it, verifies the result and writes the report.
Try the demo
No database of your own yet? Choose Run demo from the menu. It starts a throwaway PostgreSQL in Docker, seeds it with realistic fake customers — emails, phone numbers, card numbers — and runs the complete pipeline against it. Nothing of yours is touched.
safeslice demo stop # removes it when you are done
Against your own database
Choose Create a safe development database and answer four questions:
| Question | What it decides |
|---|---|
| Where is your source? | A connection string, SAFESLICE_SOURCE, or a saved connection |
| What about these columns? | The text columns no heuristic can judge |
| How much data? | Root-row limit and how many levels of children to follow |
| Where should it go? | A database it creates, or one you already have |
Then a review screen shows the exact row count per table. Nothing has been read from your tables and nothing written to the target until you choose Create the database.
What you get
safeslice-output/
├── README.md what ran, what was masked, how to connect
├── report.html the full run, with the relationship graph
├── summary.json machine-readable result, for CI
├── tables.csv per-table row counts
└── masking-rules.yaml the rules that were applied
Plus a safeslice.yaml in your project, so the same slice is repeatable by anyone on the team and by CI.
Then repeat it without the wizard
safeslice run --config safeslice.yaml --to "$DATABASE_URL"
safeslice verify --target "$DATABASE_URL"