Skip to content
dbt-labs avatar

Running Dbt Commands

Formats and runs dbt CLI commands, picks the right executable, and structures selectors and variables.

CCM score
72 of 100
skills.sh installs
1.1K
GitHub stars
774
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers building, running, testing, compiling, previewing with dbt show, and listing resources before execution
  • Includes a flavor guide for dbt Core, Fusion, and Cloud CLI, plus selector operators, defer usage, and run-result analysis
  • Enforces build over run by default, --select on every command, and --quiet with a warn-error option for empty selections
  • Designed for analytics engineers working in dbt projects who need correct CLI syntax without memorizing flags

Install

$ npx -y skills add dbt-labs/dbt-agent-skills --skill running-dbt-commands -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Running dbt Commands

Preferences

  1. Use MCP tools if available (dbt_build, dbt_run, dbt_show, etc.) - they handle paths, timeouts, and formatting automatically
  2. Always use build — even when users say "run" - When a user asks to "run" a model, recommend dbt build instead. build = run + test in one step, so it catches data quality issues immediately. dbt run alone is almost never the right answer during development.
  3. Always use --quiet with --warn-error-options '{"error": ["NoNodesForSelectionCriteria"]}' to reduce output while catching selector typos
  4. Always use --select - never run the entire project without explicit user approval

Quick Reference

# Standard command pattern
dbt build --select my_model --quiet --warn-error-options '{"error": ["NoNodesForSelectionCriteria"]}'

# Preview model output
dbt show --select my_model --limit 10

# Run inline SQL query
dbt show --inline "select * from {{ ref('orders') }}" --limit 5

# With variables (JSON format for multiple)
dbt build --select my_model --vars '{"key": "value"}'

# Full refresh for incremental models
dbt build --select my_model --full-refresh

Details

Repository
github.com/dbt-labs/dbt-agent-skills
Categories
Data Science & Analytics, Databases
First seen
Jun 3, 2026

Questions

What is running-dbt-commands?

running-dbt-commands is an agent skill listed on Claude Marketplaces in the Data Science & Analytics category. The listing describes running-dbt-commands like this: Formats and executes dbt CLI commands, selects the correct dbt executable, and structures command parameters.

How do I install running-dbt-commands?

Run npx -y skills add dbt-labs/dbt-agent-skills --skill running-dbt-commands -y in a project to install running-dbt-commands. After that, the agent can use running-dbt-commands in that project.

Which category is running-dbt-commands in?

running-dbt-commands is in the Data Science & Analytics category on Claude Marketplaces. Other listings in that category next to running-dbt-commands include azure-kusto, analyze-project and run-train.

Where is the source code of running-dbt-commands?

The source code of running-dbt-commands is on GitHub at https://github.com/dbt-labs/dbt-agent-skills. The dbt-labs account on GitHub publishes running-dbt-commands.

More from dbt-labs/dbt-agent-skills

All 12

Similar to Running Dbt Commands

More Data Science & Analytics