generate application
ng generate applicationng generate appGenerates a new basic application definition in the "projects" subfolder of the workspace.
Arguments
nameThe name of the new application.
stringOptions
inline-styles Include styles inline in the root component.ts file. Only CSS styles can be included inline. Default is false, meaning that an external styles file is created and referenced in the root component.ts file.
booleaninline-templatet Include template inline in the root component.ts file. Default is false, meaning that an external template file is created and referenced in the root component.ts file.
booleanminimalCreate a bare-bones project without any testing frameworks. (Use for learning purposes only.)
booleanDefaultfalseprefixp A prefix to apply to generated selectors.
stringDefaultappproject-rootThe root directory of the new application.
stringroutingCreates an application with routing enabled.
booleanDefaulttrueskip-installSkip installing dependency packages.
booleanDefaultfalseskip-package-jsonDo not add dependencies to the "package.json" file.
booleanDefaultfalseskip-testsS Do not create "spec.ts" test files for the application.
booleanDefaultfalsessrCreates an application with Server-Side Rendering (SSR) and Static Site Generation (SSG/Prerendering) enabled.
booleanDefaultfalsestandaloneCreates an application based upon the standalone API, without NgModules.
booleanDefaulttruestrictCreates an application with stricter bundle budgets settings.
booleanDefaulttruestyleThe file extension or preprocessor to use for style files.
stringDefaultcssview-encapsulationThe view encapsulation strategy to use in the new application.
string