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

Count

Print resource counts for a package

Count quickly summarizes the number of resources in a package.

Examples

# print Resource counts from a directory
kpt cfg count my-dir/
# print Resource counts from a cluster
kubectl get all -o yaml | kpt cfg count

Synopsis

kpt cfg count [DIR]

DIR:
  Path to a package directory.  Defaults to stdin if unspecified.

Flags

--kind
count resources by kind. (default true)

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

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