NSchema is a declarative database schema migration tool. Write the schema you want in plain SQL, point NSchema at your database, and it will compute and apply the migration to get there.
It borrows the same plan, apply pattern from Terraform, and includes a lot of similar features like backend state, database providers, and saved plan files.
Full documentation and provider support is available at nschema.dev.
dotnet tool install --global nschemaThis installs the nschema command.
nschema scaffold # scaffold a project (config + sample schema)
nschema init # restore the pinned database/state plugins
nschema plan # preview the migration
nschema apply # apply itFull documentation lives at nschema.dev:
- Quickstart — from empty directory to applied schema
- CLI reference — every command, flag, and exit code
- DDL language — how to declare schemas
- Configuration — databases, state, and environment variables
See LICENSE.
