Skip to content
Legacy docs for Tenzir v5.x. For the latest Tenzir v6 series, visit docs.tenzir.com. Migrating from v5? Read the Tenzir v6 migration guide.

Reads an environment variable.

env(x:string) -> string

The env function retrieves the value of an environment variable x. If the variable does not exist, it returns null.

from {x: env("PATH")}
{x: "/usr/local/bin:/usr/bin:/bin"}

Last updated: