Add generate process for missing manifest
Add terminal mode to main method