Skip to main content
Version: v4.21

version

Shows the current version.

Synopsis

version

Description

The version operator shows the current Tenzir version.

Schemas

Tenzir emits version information with the following schema.

tenzir.version

Contains detailed information about the process version.

FieldTypeDescription
versionstringThe formatted version string.
tagstringAn optional identifier of the build.
majoruint64The major release version.
minoruint64The minor release version.
patchuint64The patch release version.
featureslist<string>A list of feature flags that conditionally enable features in the Tenzir Platform.
buildrecordBuild-time configuration options.
dependencieslist<record>A list of build-time dependencies and their versions.

The build record contains the following fields:

FieldTypeDescription
typestringThe configured build type. One of Release, Debug, or RelWithDebInfo.
tree_hashstringA hash of all files in the source directory.
assertionsboolWhether potentially expensive run-time checks are enabled.
sanitizersrecordContains information about additional run-time checks from sanitizers.

The build.sanitzers record contains the following fields:

FieldTypeDescription
addressboolWhether the address sanitizer is enabled.
undefined_behaviorboolWhether the undefined behavior sanitizer is enabled.

The dependencies record contains the following fields:

FieldTypeDescription
namestringThe name of the dependency.
versionstringTHe version of the dependency.

Examples

Use version to show the current version of a development build:

{
"version": "v4.6.3-36-gbd4c8a058b-dirty",
"major": 4,
"minor": 6,
"patch": 3,
"tweak": 36
}

Use version to show the current version of a release build:

{
"version": "v4.7.0",
"major": 4,
"minor": 7,
"patch": 0,
"tweak": 0
}