supaschema as CLI syntax. In a project install, run it through the local runner from Installation.
After installing the package, run init through the local runner for your package manager:
Path selection
Install scans the repository before writing config:- one detected schema folder and one detected migrations folder are used automatically;
- provider markers seed default folders when no existing folders are found;
- Supabase projects use Supabase CLI sync targets by default;
- non-Supabase projects reuse existing database URL environment variable names from
.env*files when present; - generic PostgreSQL projects use
database/schemasanddatabase/migrations; - multiple candidates that still need confirmation are recorded in
.supaschema/install.json; - interactive terminals can confirm paths immediately.
| Provider marker | Schema path | Migrations path |
|---|---|---|
supabase/config.toml | supabase/schemas | supabase/migrations |
neon.toml, .neon/project.json, .neon/config.json, or Neon references in drizzle.config.* | neon/schemas | neon/migrations |
| RDS/Aurora markers in Terraform, CloudFormation/SAM, CDK, SST, or Serverless config | aws-postgresql/schemas | aws-postgresql/migrations |
| Cloud SQL markers in Terraform, Cloud Build, or App Engine config | cloud-sql/schemas | cloud-sql/migrations |
| AlloyDB markers in Terraform, Cloud Build, or App Engine config | alloydb/schemas | alloydb/migrations |
| Azure PostgreSQL markers in Terraform, Bicep, ARM, or Azure Developer CLI config | azure-postgresql/schemas | azure-postgresql/migrations |
supaschema.config.json after confirming paths. It keeps humans, CI, and coding agents on the same schema tree and migration directory.
Resolved installs do not create .supaschema/ or supaschema-only credential files; supaschema.config.json is the durable project state.
Agent addendum
Default install does not updateAGENTS.md or CLAUDE.md. The optional AI-agent bundle updates AGENTS.md only inside this managed block:
CLAUDE.md stays a pointer entrypoint (@AGENTS.md) when the project uses AGENTS.md as the canonical brief.
Check setup
Rundoctor when setup behaves unexpectedly:
doctor checks Node, parser load, config validity, database URL resolution, optional database reachability, CREATEDB, migration history, and declarative schema paths.
Configuration
Config file
Review paths, migrations, type outputs, validators, and planner policies.
Environments
Configure named targets and database URL resolution.
Hints
Approve reviewed destructive changes and renames.

