List of basic and commonly used CLI Commands
1).ng --version (cmd) -- See Angular Verion.
2).npm install -g @angular/cli -- install Angular Verion.
3).ng generate --help
4).cd D:
5).ng new DntApp :- ng new command creates an Angular workspace folder and generates a new app skeleton. A workspace can contain multiple apps and libraries.
6).cd DntApp
7).ng serve --o
==============================================================
==============================================================
1).ng generate : - ng generate command to add new files for additional components and services, and code for new pipes, directives, and so on.
Commands such as add and generate, which create or operate on apps and libraries, must be executed from within a workspace or project folder.
2).ng g c --help :- for to configure options for generating new componnent
==============================================================
==============================================================
COMMAND ALIAS
DESCRIPTION
add NA Adds support for an external library to your project.
build b
Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.
config
Retrieves or sets Angular configuration values.
generate g
Generates and/or modifies files based on a schematic.
help
Lists available commands and their short descriptions.
new n
Creates a new workspace and an initial Angular app.
serve s
Builds and serves your app, rebuilding on file changes.
test t
Runs unit tests in a project.
update
Updates your application and its dependencies. See https://update.angular.io/
version v
Outputs Angular CLI version.
xi18n
Extracts i18n messages from source code.
1).ng --version (cmd) -- See Angular Verion.
2).npm install -g @angular/cli -- install Angular Verion.
3).ng generate --help
4).cd D:
5).ng new DntApp :- ng new command creates an Angular workspace folder and generates a new app skeleton. A workspace can contain multiple apps and libraries.
6).cd DntApp
7).ng serve --o
==============================================================
==============================================================
1).ng generate : - ng generate command to add new files for additional components and services, and code for new pipes, directives, and so on.
Commands such as add and generate, which create or operate on apps and libraries, must be executed from within a workspace or project folder.
2).ng g c --help :- for to configure options for generating new componnent
==============================================================
==============================================================
COMMAND ALIAS
DESCRIPTION
add NA Adds support for an external library to your project.
build b
Compiles an Angular app into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.
config
Retrieves or sets Angular configuration values.
generate g
Generates and/or modifies files based on a schematic.
help
Lists available commands and their short descriptions.
new n
Creates a new workspace and an initial Angular app.
serve s
Builds and serves your app, rebuilding on file changes.
test t
Runs unit tests in a project.
update
Updates your application and its dependencies. See https://update.angular.io/
version v
Outputs Angular CLI version.
xi18n
Extracts i18n messages from source code.
No comments:
Post a Comment