CLI

config

Command
ng config

A workspace has a single CLI configuration file, angular.json, at the top level. The projects object contains a configuration object for each project in the workspace.

You can edit the configuration directly in a code editor, or indirectly on the command line using this command.

The configurable property names match command option names, except that in the configuration file, all names must use camelCase, while on the command line options can be given dash-case.

For further details, see Workspace Configuration.

For configuration of CLI usage analytics, see ng analytics.

Arguments

json-path

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.

Value Typestring
value

If provided, a new value for the given configuration key.

Value Typestring

Options

global
Aliasg

Access the global configuration in the caller's home directory.

Value TypebooleanDefaultfalse
help

Shows a help message for this command in the console.

Value Typeboolean
Jump to details