Contact Free trial Login

envVars

envVars(): Dictionary<String>

Returns all of the environment variables defined in the host system.

Example

This example returns a Mac command console (SHELL) path. SHELL is one of the standard Mac environment variables. To return all the environment variables, you can use dw::System::envVars().

Source

%dw 2.0
import dw::System
output application/json
---
{ "envVars" : dw::System::envVars().SHELL }

Output

{ "envVars": "/bin/bash" }

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.