Ported the form:generate command