UNPKG

795 BMarkdownView Raw
1Perform a basic update to the current stable release of the core framework and CLI by running the following command.
2
3```
4ng update @angular/cli @angular/core
5```
6
7To update to the next beta or pre-release version, use the `--next=true` option.
8
9To update from one major version to another, use the format
10`ng update @angular/cli@^<major_version> @angular/core@^<major_version>`.
11
12We recommend that you always update to the latest patch version, as it contains fixes we released since the initial major release.
13For example, use the following command to take the latest 9.x.x version and use that to update.
14
15`ng update @angular/cli@^9 @angular/core@^9`
16
17For detailed information and guidance on updating your application, see the interactive [Angular Update Guide](https://update.angular.io/).