Skip to content

nschema init

Scaffold a simple project in the current directory, to get a new project going. It connects to nothing.

Terminal window
nschema init

This writes:

  • config.sql — the project’s provider/state configuration, as PROVIDER / BACKEND config blocks.
  • schemas/example.sql — a starter desired-schema file.

Edit those to point at your database and describe the schema you want, then plan and apply.

  • --force — initialize even if the directory is not empty. Without it, init refuses to run in a non-empty directory so it can’t clobber existing files.

Nothing — init only writes files.