ng update

Updates your application and its dependencies. See https://update.angular.io/

ng update [options]


Perform a basic update to the current stable release of the core framework and CLI by running the following command.

ng update @angular/cli @angular/core

To update to the next beta or pre-release version, use the --next option.

To update from one major version to another, use the format

ng update @angular/[email protected]^<major_version> @angular/[email protected]^<major_version>

We recommend that you always update to the latest patch version, as it contains fixes we released since the initial major release. For example, use the following command to take the latest 10.x.x version and use that to update.

ng update @angular/[email protected]^10 @angular/[email protected]^10

For detailed information and guidance on updating your application, see the interactive Angular Update Guide.


Option Description


Whether to update all packages in package.json.

Default: false


Whether to allow updating when the repository contains modified or untracked files.


Create source control commits for updates and migrations.

Default: false

Aliases: -C


If false, will error out if installed packages are incompatible with the update.

Default: false


Version from which to migrate from. Only available with a single package being updated, and only on migration only.

--help= true|false|json|JSON

Shows a help message for this command in the console.

Default: false


Only perform a migration, does not update the installed version.


Use the prerelease version, including beta and RCs.

Default: false


The names of package(s) to update.


Version up to which to apply migrations. Only available with a single package being updated, and only on migrations only. Requires from to be specified. Default to the installed version detected.


Display additional details about internal operations during execution.

Default: false

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.