antra init
Initialize config, introspect the database, and generate a schema snapshot.
Sets a project up for analysis. Run it once, in the app you want scanned.
Usage
antra init [path]
path is the Next.js app root and defaults to ..
What it writes
- an
antra.config.jsonat the project root - a static schema snapshot, so later scans know which fields are sensitive without talking to your database again
The schema snapshot step is what makes the analysis schema-aware: it reads the structure of your data layer once, and every scan after that uses the snapshot.
Flags
init takes no options beyond the optional path.
Next
antra scan
If the snapshot needs refreshing later, because a migration added a column, say,
run antra sync rather than init again.