Skip to content

env

env(name) → string · System

Read an environment variable from the host system. Returns null if not set.

  • name (required): environment variable name
utlx
{
  home: env("HOME"),                     // "/Users/alice"
  dbHost: env("DB_HOST") ?? "localhost"  // fallback if not set
}

Also: hasEnv(name) → boolean, envAll() → object with all environment variables.

Security note: env() is unrestricted in the CLI and IDE. In the UTLXe engine, environment variable access can be disabled or restricted via the security policy configuration (Chapter 38) to prevent transformations from reading host secrets in multi-tenant deployments.

Released under AGPL-3.0.