Init
Init
The init command creates a new default Trilogy workspace with configuration and directory structure.
Arguments:
@argument("path", type=str, required=False, default=".")
What It Creates
trilogy.toml- Configuration fileraw/- Directory for raw data modelsderived/- Directory for derived data modelsjobs/- Directory for job scriptshello_world.preql- Example script to get started
Full Example
# Initialize in current directory
trilogy init
# Initialize in a new directory
trilogy init my_project
# Then get started
cd my_project
trilogy unit hello_world.preql
Notes
- Will fail if
trilogy.tomlalready exists in the target directory - Creates parent directories if they don't exist
