Skip to main content

sqb init

Creates a new SQLBuild project with a minimal directory structure and configuration files.

Usage

No flags. Run in the directory where you want to create the project.

Project layout

sqb init creates the configuration, linter settings, and empty resource directories needed for a standalone project:
Empty directories contain .gitkeep files so the scaffold can be committed. Reusable attached audit definitions belong in audits/generic/; standalone audits belong in audits/singular/. Add reusable SQL lifecycle hooks to hooks/sql/ and decorated Python lifecycle hooks to hooks/python/; see Hooks. The generated project uses DuckDB, creates a named local connection shared by dev and prod, and defaults models to table materialization. Its configuration follows this shape:
The project name is derived from the current directory name, with hyphens converted to underscores.