dbt_version

Changelog

The dbt_version variable returns the installed version of dbt that is currently running. It can be used for debugging or auditing purposes.

Example Usage

macros/get_version.sql
{% macro get_version() %}
{% do log("The installed version of dbt is: " ~ dbt_version, info=true) %}
{% endmacro %}
$ dbt run-operation get_version
The installed version of dbt is 0.16.0