angular cli generate commands code example Example 1: ng angular ng n [options] Example 2: create angular component using cli ng generate component hero-detail