Skip to content

dag

Display the dependency graph (DAG) of all models.

Models are grouped by execution level, showing which models can run in parallel and their dependency relationships.

Output adapts to environment:

  • Terminal: Styled output with colors
  • Piped/Scripted: Markdown format (agent-friendly)

Usage

bash
leapsql dag

Global Options

OptionShortDefaultDescription
--configconfig file (default: ./leapsql.yaml)
--databasePath to DuckDB database (empty for in-memory)
--envEnvironment name
--macros-dirPath to macros directory
--models-dirPath to models directory
--output-oOutput format (auto|text|markdown|json)
--project-dir-CProject root directory (auto-detected from models-dir or config file location)
--seeds-dirPath to seeds directory
--statePath to state database
--target-tTarget environment to use (e.g., dev, staging, prod)
--verbose-vfalseVerbose output

Examples

bash
# Show the DAG
leapsql dag

# Show DAG with verbose model info
leapsql dag -v

# Output as JSON
leapsql dag --output json

# Output as Markdown
leapsql dag --output markdown

Released under the MIT License.