Run dbt on changed models with model+ chaining.
Project description
dbtdiff
A CLI tool to run dbt only on changed models with model+ chaining.
Installation
pip install dbtdiff
Features
The default behavior is to run dbt build on all downstream models that have changed since the last commit, using the HEAD reference. It supports:
- Custom commands (e.g.,
dbt run,dbt test) - Custom targets
- Custom number of downstream models to include
- Ability to compare to
mainrather than your last commit.
Usage
dbtdiff # Compare against last commit
dbtdiff -m # Compare against origin/main
dbtdiff -c run # Swap `build` for `run`, dbt run -t dev
dbtdiff -n 1 # Custom command, target, and only run 1 downstream model
dbtdiff -f # Include --full-refresh in the dbt command
All options can be combined, or fully qualified with --command, --target, --number, --main and --full-refresh.
Quick QOL Roadmap
- Support for seeds
- Support for snapshots
- Only run modified tests from .yml
- Custom branch names
- Macro change support
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbtdiff-0.1.1.tar.gz.
File metadata
- Download URL: dbtdiff-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4610714744fef56629c3826e7e7704d29830aa8d61a52a34a232dc95ccc1b6d9
|
|
| MD5 |
905865b7e46ba933ea41e3dbf77bafd8
|
|
| BLAKE2b-256 |
a377a72967483ce44b715907bd050bc25fcf675cd6e798867659e909c98855d6
|
File details
Details for the file dbtdiff-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dbtdiff-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c1f4baf9c8fd550744166348af8de13b0ad0249d36149a3d333a6b2fd6a758c
|
|
| MD5 |
3f1964a2f0edabf10eaac639427ebd31
|
|
| BLAKE2b-256 |
8702bab0fe2e8b395a5768eb697b478983950c14c6cbd1941eaaa23d53449f7d
|