Skip to main content

Resource type

The --resource-type and --exclude-resource-type flags include or exclude resource types from the dbt build, dbt clone, and dbt list commands.

This means the flags enable you to specify which types of resources to include or exclude when running the commands, instead of targeting specific resources.

The available resource types are:

Example‚Äč

Instead of targeting specific resources, use the --resource-flag or --exclude-resource-type flags to target all resources of a certain type: dbt build --exclude-resource-type RESOURCE_TYPE replacing RESOURCE_TYPE with the resource type you want to exclude.

  • For example, use the following command to exclude all snapshots from your dbt build process:
Usage
dbt build --exclude-resource-type snapshot
0