kx yaml
Prints the raw YAML manifest for one or more indexed resources. --show fetches the same full manifest and narrows it client-side to the named top-level fields, so it works with anything kubectl’s own YAML output has.
Usage
kx yaml [OPTIONS] <index>...Arguments
| Argument | Description |
|---|---|
<index>... | Row number from the current listing; run kx state to see it |
Options
| Option | Description |
|---|---|
--show string | Comma-separated fields to display (e.g. metadata,spec) |
Global options
| Option | Description |
|---|---|
--no-color | Disable styled output |
-h, --help | Show this message and exit |
Examples
kx yaml 1
kx yaml 1 2
kx yaml 1 --show metadata,spec
kx yaml 1..3
kx yaml 3..