W3cubDocs

/Nushell

load-env for filesystem

Loads an environment update from a record.

Signature

> load-env {flags} (update)

Parameters

  • update: the record to use for updates

Input/output types:

input output
nothing nothing
record nothing

Examples

Load variables from an input stream

> {NAME:ABE, AGE:UNKNOWN} |load-env;$env.NAME
ABE

Load variables from an argument

>load-env {NAME:ABE, AGE:UNKNOWN};$env.NAME
ABE

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/load-env.html