let-env

Create an environment variable and give it a value.

Signature

> let-env (var_name) (initial_value)

Parameters

  • var_name: variable name
  • initial_value: equals sign followed by value

Examples

Create an environment variable and display it

> let-env MY_ENV_VAR = 1; $env.MY_ENV_VAR