New to Kestra?
Use blueprints to kickstart your first workflows.
Clone a SQLMesh project from Git, apply transformations with the SQLMesh CLI, and query the resulting DuckDB warehouse, all orchestrated by Kestra.
Run SQLMesh data transformations end to end on Kestra: pull a SQLMesh project from a Git repository, execute sqlmesh plan --auto-apply to build the models, and query the resulting DuckDB database in the same flow. This blueprint shows how to combine version-controlled SQL modeling, an embedded analytical engine, and a declarative orchestrator so your data team can ship reproducible analytics pipelines without managing extra infrastructure.
io.kestra.plugin.core.flow.WorkingDirectory task creates a shared filesystem for the SQLMesh project and its outputs.io.kestra.plugin.git.Clone checks out the TobikoData/sqlmesh-examples repository from main.io.kestra.plugin.sqlmesh.cli.SQLMeshCLI then changes into 001_sushi/1_simple and runs sqlmesh plan --auto-apply, materializing the models into db/sushi-example.db which is captured via outputFiles.io.kestra.plugin.jdbc.duckdb.Queries task receives that file through inputFiles, attaches it as data.db, and runs SELECT * FROM sushisimple.top_waiters with fetchType: STORE so the result is stored as a Kestra output for previews, downloads, or downstream tasks.SQLMesh ships a powerful CLI but no scheduler, environment manager, or downstream hand-off. Kestra adds event and cron triggers, automatic retries on flaky Git or build steps, full execution lineage across the clone, plan, and query tasks, and declarative YAML you can review in pull requests. The DuckDB query step then consumes the SQLMesh output file directly, something a standalone SQLMesh run cannot coordinate on its own.
TobikoData/sqlmesh-examples repo, no auth required).io.kestra.plugin.sqlmesh and io.kestra.plugin.jdbc.duckdb plugins available on your Kestra worker.This blueprint does not reference any {{ secret('NAME') }} values. If you point it at a private Git repository, add username and password properties on the Clone task and store the token in a secret such as GIT_TOKEN.
company.team.url and branch on git_clone for your own SQLMesh project.beforeCommands to cd into your project directory and update the commands list if you want extra SQLMesh steps such as sqlmesh audit.query task outputs.SELECT in the query task with a templated SQL file driven by flow inputs.main.dbt, Python, or notification task after the query to act on the freshly modeled data.