ng-generate
Verified for current stable LTS
Ng Generate Command: Create New Class
Use for create new class with Ng Generate. Exact CLI syntax to create new class using Ng Generate.
When to use this: Use for create new class with Ng Generate.
Command Syntax
ng g cl <class_name> ng g cl <class_name> Live Command Builder
Final Command
ng g cl <class_name> Command Breakdown
ng is the base executable for this command.
FAQ
Purpose: Exact syntax to create new class using Ng Generate.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Ng Generate Command: Create New Component
ng g c <component_name> Ng Generate Command: Create New Directive ng g d <directive_name> Ng Generate Command: Create New Enum ng g e <enum_name> Ng Generate Command: Create New Pipe ng g p <pipe_name> Ng Generate Command: Create New Service ng g s <service_name>