github.com/wmuizelaar/kpt@v0.0.0-20221018115725-bd564717b2ed/site/reference/cli/pkg/cat/README.md (about) 1 --- 2 title: "`cat`" 3 linkTitle: "cat" 4 type: docs 5 description: > 6 Print the resources in a file/directory 7 --- 8 9 <!--mdtogo:Short 10 Print the resources in a file/directory 11 --> 12 13 `cat` prints the resources in a file or directory as yaml to stdout. 14 15 ### Synopsis 16 17 <!--mdtogo:Long--> 18 19 ``` 20 kpt pkg cat [FILE | DIR] 21 ``` 22 23 #### Args 24 25 ``` 26 FILE | DIR: 27 Path to a directory either a directory containing files with KRM resources, or 28 a file with KRM resource(s). Defaults to the current directory. 29 ``` 30 31 <!--mdtogo--> 32 33 #### Flags 34 35 ``` 36 --annotate 37 Annotate resources with their file origins. 38 39 --format 40 Format resource before printing. Defaults to true. 41 42 --recurse-subpackages, -R 43 Print resources recursively in all the nested subpackages. Defaults to true. 44 45 --strip-comments 46 Remove comments from yaml. 47 48 --style 49 yaml styles to apply. May be 'TaggedStyle', 'DoubleQuotedStyle', 'LiteralStyle', 'FoldedStyle', 'FlowStyle'. 50 ``` 51 52 ### Examples 53 54 <!--mdtogo:Examples--> 55 56 ```shell 57 # Print resource from a file. 58 $ kpt pkg cat path/to/deployment.yaml 59 ``` 60 61 ```shell 62 # Print resources from current directory. 63 $ kpt pkg cat 64 ``` 65 66 <!--mdtogo-->