
dbt
CLI数仓建模与 ELT 转换的命令行框架:用 SQL 编写模型,自动处理依赖、数据测试与文档生成。v2 用 Rust 重写为单一二进制,dbt Labs 官方维护,需配置数据仓库连接。
[!WARNING] dbt v1 development has moved to the
1.latestbranch. Themainbranch now contains all the Apache 2.0 source code of dbt v2.0 — a ground-up rewrite of dbt in Rust. If you're looking for the v1 Python implementation of the dbt framework, switch to1.latest.
dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications.

About dbt v2.0
dbt v2.0 is engineered for performance at scale. It parses, compiles, and runs projects in a fraction of the time compared to v1. The source code in this repository is available to everyone under the standard Apache 2.0 license. dbt is a distribution of the dbt repository with dbt-specific customizations released under a dbt product license.
The big shifts from v1:
- Faster — parse and compile times are dramatically improved, especially on the largest dbt projects.
- Stricter — a tightly-defined language specification enforces correctness at parse time.
- More scalable artifacts — v2.0 produces Parquet artifacts that can be easily queried, joined, and analyzed to understand your dbt project. The artifacts encompass everything in the JSON artifacts (e.g.
manifest.json), which continue to be produced for backwards compatibility. - Easier to install — distributed as a single self-contained binary, with no Python runtime or dependency management required.
- A completely revamped local documentation experience — dbt docs is now powered by those new artifacts and capable of scaling to large projects.
Supported operating systems and architectures
dbt v2.0 and its drivers are compiled per operating system and architecture.
Legend:
- 🟢 — Supported today
- 🟡 — Not yet supported
| Operating system | x86-64 | ARM |
|---|---|---|
| macOS | 🟢 | 🟢 |
| Linux | 🟢 | 🟢 |
| Windows | 🟢 | 🟡 |
Understanding dbt
Analysts using dbt can transform their data by simply writing select statements, while dbt handles turning these statements into tables and views in a data warehouse.
These select statements, or "models", form a dbt project. Models frequently build on top of one another – dbt makes it easy to manage relationships between models, and visualize these relationships, as well as assure the quality of your transformations through testing.

Getting started
- Install dbt
- Read the introduction and viewpoint
- Explore the dbt platform for an enhanced collaboration experience.
Join the dbt Community
- Be part of the conversation in the dbt Community Slack
- Read more on the dbt Community Discourse
Reporting bugs and contributing code
- Want to report a bug or request a feature? Let us know and open an issue
- Want to help us build dbt? Check out the Contributing Guide
Code of Conduct
Everyone interacting in the dbt project's codebases, issue trackers, chat rooms, and mailing lists is expected to follow the dbt Code of Conduct.
License
The source code in this repository is licensed under the Apache License 2.0.
相关资源

SQLMesh
CLI用 SQL 或 Python 编写数据转换模型的框架。提供类似 Terraform 的 plan / apply 流程、虚拟数据环境、单元测试和表差异比对,能在 10 多种 SQL 方言之间转译。Linux 基金会项目,可以替代 dbt。
SQLMesh/sqlmesh3.3k
dbt Agent Skills
Skilldbt Labs 官方技能合集:编写与修改 dbt 模型、补单元测试与文档、搭建 MetricFlow 语义层、排查任务失败,以及 dbt 版本升级与跨平台迁移。多数技能需要已安装 dbt 并有现成项目。
dbt-labs/dbt-agent-skills737
dbt Agent Skills
Plugindbt Labs 官方插件市场,提供 dbt 与 dbt-migration 等插件:编写模型与单元测试、构建语义层指标、dbt Mesh 治理、排查作业失败,以及版本升级与跨平台迁移。多数技能需要现成的 dbt 项目。
dbt-labs/dbt-agent-skills737
dbt MCP Server
MCP让 agent 读取 dbt 项目的模型、血缘与语义层指标,执行 build、run、test 等命令,并调用 dbt 平台的 Discovery 与 Admin API。dbt Labs 官方维护;语义层与平台类工具需要 dbt 平台账号。
dbt-labs/dbt-mcp609
SQLFluff
CLI支持二十多种 SQL 方言的 linter 与格式化工具,可自动修复大部分问题,兼容 Jinja 模板与 dbt 项目(dbt 需装插件),适合在数仓代码评审和 CI 中使用。
sqlfluff/sqlfluff10k
Databricks Agent Skills
SkillDatabricks 官方技能库,指导 agent 在湖仓上开发 Lakeflow 数据管道与作业、Apps、Lakebase、向量搜索、模型服务和 AI/BI 看板。需要安装 Databricks CLI。
databricks/databricks-agent-skills352