Antra
How it worksStar3npmGet Started
Star3
Antra
How it worksStar3npmGet Started
Star3
Documentation
  • Introduction
  • Installation
  • Quick start
  • Configuration basics
  • Monorepos
  • Trust boundaries
  • Findings and severity
  • Schema providers
  • Suppressions and baselines
  • antra init
  • antra scan
  • antra sync
  • antra doctor
  • antra baseline
  • antra trace
  • antra watch
  • antra fix
  • antra query
  • antra studio
  • Studio
  • Launching Studio
  • Reading the graph
  • Configuration reference
  • BG-001: Server-to-client leak
  • BG-002: Unvalidated input
  • BG-003: Opaque object pass
  • BG-004: Secret in markup
  • GitHub Actions
  • Introduction
  • Installation
  • Quick start
  • Configuration basics
  • Monorepos
  • Trust boundaries
  • Findings and severity
  • Schema providers
  • Suppressions and baselines
  • antra init
  • antra scan
  • antra sync
  • antra doctor
  • antra baseline
  • antra trace
  • antra watch
  • antra fix
  • antra query
  • antra studio
  • Studio
  • Launching Studio
  • Reading the graph
  • Configuration reference
  • BG-001: Server-to-client leak
  • BG-002: Unvalidated input
  • BG-003: Opaque object pass
  • BG-004: Secret in markup
  • GitHub Actions
Antra

Catch security issues before they cross the boundary.

How it worksChecksDocumentationGitHubnpm
© 2026 AntraMIT LicenseBack to top

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.json at 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.

Previous
Suppressions and baselines
Next
antra scan
On this page
  • Usage
  • What it writes
  • Flags
  • Next