Env

Return the value for the environment variable name given

Command:

env

Syntax:

echo env <var_name>
option = env(<var_name>)

Example:

echo env "HOME"
/Users/username

var my_var = env("HOME")
echo my_var
/Users/username

var my_var = env("HOME")
echo 'The environment variable value is: {{my_var}}'
The current second is: /Users/username

Last updated