Skip to main content
Version: Next

version

Shows the current version.

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

Show the current version

version
drop dependencies
{
  version: "4.22.1+g324214e6de",
  tag: "g324214e6de",
  major: 4,
  minor: 22,
  patch: 1,
  features: [],
  build: {
    type: "Release",
    tree_hash: "c4c37acb5f9dc1ce3806f40bbde17a08",
    assertions: false,
    sanitizers: {
      address: false,
      undefined_behavior: false,
    },
  },
}