nushell/docs/commands/let-env.md
Justin Ma c0a1d18e3d
update #4455, regenerate commands' docs and update make_docs script (#4586)
* feat: update #4455, regenerate commands' docs

* chore: update make_docs script
2022-02-21 11:26:00 -06:00

378 B

title layout version
let-env command 0.59.0

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