Angular CLI - ng config Command


Advertisements

Syntax

ng config <jsonPath> <value> [options]

ng config command retrieves or sets angular configuration values in angular.json. Options are optional parameters.

Arguments

Sr.No. Argument & Syntax Description
1 <jsonPath> The configuration key to set or query, in JSON path format. For example: "a[3].foo.bar[2]". If no new value is provided, returns the current value of this key.
2 <value> If provided, a new value for the given configuration key.

Options

Sr.No. Option & Syntax Description
1 --global=true|false

When true, accesses the global configuration in the caller's home directory.

Default: false

Aliases: -g

2 --help=true|false|json|JSON

Shows a help message for this command in the console.

Default: false

First move to an angular project updated using ng build command.

Now run the config command.

Example

\>Node\>Howcodex> ng config projects.Howcodex.projectType
application
Advertisements