Skip to main content

Print output

Suppress print() messages in stdout

By default, dbt includes print() messages in standard out (stdout). You can use the DBT_PRINT environment variable to prevent these messages from showing up in stdout.

Syntax deprecation

The original DBT_NO_PRINT environment variable has been deprecated, starting with dbt v1.5. Backward compatibility is supported but will be removed in an as-of-yet-undetermined future release.

Supply --no-print flag to dbt run to suppress print() messages from showing in stdout.

dbt --no-print run

Printer width

By default, dbt will print out lines padded to 80 characters wide. You can change this setting by adding the following to your profiles.yml file:

profiles.yml
config:
printer_width: 120

By default, dbt will colorize the output it prints in your terminal. You can turn this off by adding the following to your profiles.yml file:

profiles.yml
config:
use_colors: False
dbt --use-colors run
dbt --no-use-colors run

You can set the color preferences for the file logs only within profiles.yml or using the --use-colors-file / --no-use-colors-file flags.

profiles.yml
config:
use_colors_file: False
dbt --use-colors-file run
dbt --no-use-colors-file run
0