Skip to main content
The compile command renders model SQL into ./target/compile/. It can also run runtime models to generate CSV outputs when requested.

Usage

Options

In addition to the global options, this command supports the following options:

Examples

Compile all models with prompts:
Compile non-interactively and clear previous outputs:
Compile only runtime models for the default test set:
Compile runtime models for all test sets:
Compile a single model:
Run runtime models and write CSV outputs:

Notes

  • If --yes is not provided, the command may prompt for settings interactively
  • --runquery, --test-set, and --all-test-sets apply only to runtime models
  • --buildtime-only and --runtime-only are mutually exclusive