CLI Reference
Installation
See the README for installation instructions.
Global Options
| Option | Description |
|---|---|
--verbose, -v | Enable verbose logging output |
--help, -h | Display help information |
--version, -V | Display version |
Commands
run
Run dbtective analysis on your dbt project.
Usage: dbtective run [OPTIONS]
Important:
- Before running manifest-based rules, run
dbt compile,dbt build,dbt runor any of the documented commands to ensuremanifest.jsonis up to date. - Before running catalog-based rules, run
dbt docs generateto ensurecatalog.jsonis available.
Options
| Option | Short | Default | Description |
|---|---|---|---|
--entry-point <PATH> | . | Path to dbt project root | |
--config-file <PATH> | -c | Auto-detected | Path to dbtective configuration from the entry-point (overrides auto-detection) |
--manifest-file <PATH> | -m | target/manifest.json | Path to dbt manifest.json |
--catalog-file <PATH> | -g | target/catalog.json | Path to dbt catalog.json |
--only-manifest | true | Run only manifest rules | |
--disable-hyperlinks | false | Disable file hyperlinks in the output | |
--hide-warnings | false | Hide warnings from output (only show errors) |
Config File Auto-Detection
By default, dbtective automatically searches for configuration files in the following priority order:
dbtective.ymlordbtective.yaml(highest priority)dbtective.tomlpyproject.toml(lowest priority)
If multiple config files exist, dbtective will use the highest priority one and display a warning. You can override this behavior by explicitly specifying --config-file.
Examples
# Run with defaults (auto-detects config, uses target/manifest.json)
dbtective run
# Run with a specific config file
dbtective run --config-file ./configs/dbtective.toml
# Run with verbose output
dbtective run --verbose
# Run on a specific dbt project
dbtective run --entry-point ./dbt_project
# Run only manifest rules
dbtective run --only-manifest
# Disable hyperlinks in output table
dbtective run --disable-hyperlinks
# Hide warnings, only show errors (useful for CI)
dbtective run --hide-warningsinit
Initialize a new dbtective configuration file in your dbt project.
Usage: dbtective init [OPTIONS]
Options
| Option | Short | Default | Description |
|---|---|---|---|
--location <PATH> | -l | . | Directory where the config file will be created |
--format <FORMAT> | -f | yml | Config file format: yml, yaml, toml, or pyproject |
Examples
# Create dbtective.yml in current directory (default)
dbtective init
# Create dbtective.toml instead
dbtective init --format toml
# Add [tool.dbtective] section to pyproject.toml
dbtective init --format pyproject
# Create config in a specific directory
dbtective init --location ./my_dbt_projectGetting Help
- Command help:
dbtective --helpordbtective run --help - Documentation: https://feliblo.github.io/dbtective/
- Issues: https://github.com/feliblo/dbtective/issues