Hello 😊, about *--dry-run* , is this for generate a preview without genera . . .

Edith Puclla:
Hello :blush:, about –dry-run , is this for generate a preview without generate a file in somewhere, right?

kubectl create namespace test-123 --dry-run=client -o json

Edith Puclla:
I got it :slightly_smiling_face:
--dry-run: By default as soon as the command is run, the resource will be created. If you simply want to test your command, use the --dry-run=client option. This will not create the resource, instead, tell you whether the resource can be created and if your command is right.
-o yaml: This will output the resource definition in YAML format on the screen.”

Ceferino Villareal:
add > filename.yaml at the end if you want it in file