debug env

For debug.

Show environment variables as external commands would get it.

Command Type

built-in

Signature

> debug env {flags}

Input/output types:

input output
nothing record

Examples

Get PATH variable that externals see.

> debug env | get PATH!

Create a .env file.

> debug env | transpose key value | each {$"($in.key)=($in.value | to json)"} | save .env

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.