Skip to main content
Angular CLI - ng update

Angular CLI - ng update

Update Angular packages with version-aware migration schematics.

Angular CLI - ng update illustration

How it works

ng update checks package updates and runs migrations for supported Angular packages. Follow the official Update Guide for major-version changes, update one major step at a time when required, and review migration output, lockfile changes, and tests.

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 update · Current Angular CLI reference · Workspace configuration.