About dbt --version
The --version
command-line flag returns information about the currently installed version of dbt Core or the Cloud CLI. This flag is not supported when invoking dbt in other dbt runtimes (for example, the IDE or scheduled runs).
- dbt Core — Returns the installed version of dbt Core and the versions of all installed adapters.
- Cloud CLI — Returns the installed version of the Cloud CLI and, for the other
dbt_version
values, the latest version of the dbt runtime in dbt.
Versioning
To learn more about release versioning for dbt Core, refer to How dbt Core uses semantic versioning.
If using a dbt release track, which provide ongoing updates to dbt, then dbt_version
represents the release version of dbt in dbt. This also follows semantic versioning guidelines, using the YYYY.M.D+<suffix>
format. The year, month, and day represent the date the version was built (for example, 2024.10.8+996c6a8
). The suffix provides an additional unique identification for each build.
Example usages
dbt Core example:
dbt Core
$ dbt --version
Core:
- installed: 1.7.6
- latest: 1.7.6 - Up to date!
Plugins:
- snowflake: 1.7.1 - Up to date!
dbt CLI example:
dbt CLI
$ dbt --version
Cloud CLI - 0.35.7 (fae78a6f5f6f2d7dff3cab3305fe7f99bd2a36f3 2024-01-18T22:34:52Z)
0