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


Print resource counts for a package

Count quickly summarizes the number of resources in a package.


# 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


kpt cfg count [DIR]

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


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)