Creating Other Things
The CLI can scaffold other Angular entities such as services, pipes and directives using the generate command.
ng generate [entity] [entity-name]
This creates the entity at
src/app/[entity-name].[entity].tsalong with a spec file, or at the current path if the command is executed in a child folder of the project. The CLI provides blueprints for the following entities out of the box: