ast for debug> ast {flags} (pipeline)
--json, -j: serialize to json--minify, -m: minify the nuon or json outputpipeline: the pipeline to print the ast for| input | output | 
|---|---|
| string | record | 
Print the ast of a string
>ast'hello'
Print the ast of a pipeline
>ast'ls | where name =~ README'
Print the ast of a pipeline with an error
>ast'for x in 1..10 { echo $x '
Print the ast of a pipeline with an error, as json, in a nushell table
>ast'for x in 1..10 { echo $x '--json|getblock|from json
Print the ast of a pipeline with an error, as json, minified
>ast'for x in 1..10 { echo $x '-j-m
    Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
    https://www.nushell.sh/commands/docs/ast.html