Skip to content

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

ArgumentDescription
<index>...Row number from the current listing; run kx state to see it

Options

OptionDescription
--show stringComma-separated fields to display (e.g. metadata,spec)

Global options

OptionDescription
--no-colorDisable styled output
-h, --helpShow 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..