Init
Init
The init command creates a new default Trilogy workspace with configuration and directory structure.
Usage
trilogy init [path]
Arguments
| Argument | Description |
|---|---|
path | Where the workspace should be created. Defaults to the current directory. |
What It Creates
trilogy.toml- configuration fileassets/root/- directory for 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
trilogy ingestwrites generated models toraw/next totrilogy.toml, not intoassets/root/- pass-o assets/rootif you want them together