mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-20 05:24:57 +08:00
23 lines
805 B
Markdown
23 lines
805 B
Markdown
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/cli@^<major_version> @angular/core@^<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/cli@^10 @angular/core@^10
|
|
```
|
|
|
|
For detailed information and guidance on updating your application, see the interactive [Angular Update Guide](https://update.angular.io/).
|