metadata

For debug.

Get the metadata for items in the stream.

Command Type

built-in

Signature

> metadata {flags} (expression)

Parameters

  • expression: The expression you want metadata for.

Input/output types:

input output
any record

Examples

Get the metadata of a variable.

> let a = 42; metadata $a

Get the metadata of the input.

> ls | metadata

Subcommands:

name description type
metadata access Access the metadata for the input stream within a closure. built-in
metadata set Set the metadata for items in the stream. built-in

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