Kubernetes set image in a deployment in imperative way

kubectl set image deployment my-deployment '*=nginx:1.18'