Create cmd.patch