Version 1.18 command differences

Hi team,
Can someone please help me to compose the new version 1.18 for the following commands?

  1. k run nginx-deploy --image=nginx:1.16 –record
    // creates a deployment and records it at the same time

  2. k run --generator=run-pod/v1 nameof-pod --image=nginx --dry-run -o yaml > file.yaml

Thank you!