add generate command for mac