Add hook (web,cron) and rename gen to cli