Skip to main content
Version: v4.24

env

Reads an environment variable.

env(x:string) -> string

Description

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

Examples

Read the PATH environment variable

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