ng update
Updates your application and its dependencies.
ng update [options]
Description
Perform a basic update to the current stable release of the core framework and CLI by running the following command.
update @angular/cli @angular/core
To update to the next beta or pre-release version, use the --next=true option.
Options
OPTION | DESCRIPTION |
---|---|
--all=true|false | Whether to update all packages in package.json. Default: false |
--allowDirty=true|false | Whether to allow updating when the repository contains modified or untracked files. |
--force=true|false | If false, will error out if installed packages are incompatible with the update. Default: false |
--from=from | 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 |
--migrateOnly=true|false | Only perform a migration, does not update the installed version. |
--next=true|false | Use the largest version, including beta and RCs. Default: false |
--packages | The names of package(s) to update. |
--to=to | 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. |
Previous: ng generate
Next:
ng xi18n
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://w3resource.com/angular/ng-update.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics