How do I see the yaml output of a oc command without running it?

Originally you could simply add --dry-run=true -o yaml to any oc command. However, the boolean has been deprecated and you should now use:

--dry-run=client -o yaml