This is the documentation for version 0.39. For documentation on the latest version of kpt, please see kpt.dev.

Cat

Print the resources in a package

Cat prints the resources in a package as yaml to stdout.

Cat is useful for printing only the resources in a package which might contain other non-resource files.

Examples

# print Resource config from a directory
kpt cfg cat my-dir/

Synopsis

kpt cfg cat DIR

DIR:
  Path to a package directory

Flags

--annotate
  annotate resources with their file origins.

--dest string
  if specified, write output to a file rather than stdout

--exclude-non-local
  if true, exclude non-local-config in the output.

--format
  format resource config yaml before printing. (default true)

--function-config string
  path to function config to put in ResourceList -- only if wrapped in a ResourceList.

--include-local
  if true, include local-config in the output.

--recurse-subpackages, -R
  print resources recursively in all the nested subpackages. (default true)

--strip-comments
  remove comments from yaml.

--style
  yaml styles to apply.  may be 'TaggedStyle', 'DoubleQuotedStyle', 'LiteralStyle', 'FoldedStyle', 'FlowStyle'.

--wrap-kind string
  if set, wrap the output in this list type kind.

--wrap-version string
  if set, wrap the output in this list type apiVersion.

Last modified September 10, 2020: docs: Guides For Composite Packages (7716e112)