Global CLI flags

dbt commands (eg. run, test, etc) support their own command-specific CLI flags. In addition to these command specific flags, the dbt command itself supports "global" flags applicable to all subcommands.

As of v1.0, the vast majority of global CLI flags map to global configs, which can also be configured via environment variables or dbt_project.yml.

There remain two flags that are available on the CLI only:

Version

The --version flag returns information about the currently installed version of dbt.

Usage
$ dbt --version
installed version: 0.15.1
latest version: 0.15.1
Up to date!

Record timing info

The -r or --record-timing-info flag saves performance profiling information to a file. This file can be visualized with snakeviz to understand the performance characteristics of a dbt invocation

Usage
$ dbt -r timing.txt run
...
$ snakeviz timing.txt