Angular CLI – ng doc Command

Angular CLI - ng doc Command

In this Angular CLI ng doc Command chapter explains the syntax, arguments and options of ng doc command along with an example. so all the details od Angular CLI ng doc Command listed below-

Syntax

The syntax for ng doc command is as follows −

ng doc <keyword> [options]
ng d <keyword> [options]

ng doc command opens the official Angular documentation in a browser, and searches for a given keyword. Options are optional parameters.

Arguments

The arguments for ng doc command is as follows −

Sr.No.Argument & SyntaxDescription
1<keyword>The keyword to search for, as provided in the search bar in angular.io.

Options

Options are optional parameters.

Sr.No.Option & SyntaxDescription
1–help=true|false|json|JSONShows a help message for this command in the console.Default: false

First, move to an angular project updated using ng build command. This chapter is available at https://adglob.in/blog/angular-cli-ng-build-command/.

Now run the doc command.

Example

An example for the ng doc command is given below −

\>Node\>Adglob> ng doc build

Now a browser window will open and search the relevant keyword.

Angular CLI - ng doc Command

Next Topic : Click Here

Leave a Reply