nschema init
Scaffold a simple project in the current directory, to get a new project going. It connects to nothing.
nschema initThis writes:
config.sql— the project’s provider/state configuration, asPROVIDER/BACKENDconfig 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.
Options
Section titled “Options”--force— initialize even if the directory is not empty. Without it,initrefuses to run in a non-empty directory so it can’t clobber existing files.
Nothing — init only writes files.