Skip to main content
Angular CLI - ng config

Angular CLI - ng config

Read or change a value in workspace or global CLI configuration.

Angular CLI - ng config illustration

How it works

ng config reads or updates angular.json workspace settings; --global accesses user-level configuration. Workspace properties use camelCase in configuration even when command options use dash-case. Review diffs carefully because configuration affects builds and development tools.

Good practice

  • Check the local Angular CLI version and run commands from the intended workspace.
  • Review angular.json targets and builders before assuming optional commands are configured.
  • Use the package manager and lockfile selected by the project.
  • Review generated files, configuration changes, and build output before committing or deploying.

Further reading: Tutorialspoint: Angular CLI - ng config · Current Angular CLI reference · Workspace configuration.