ng update

This is the documentation for Angular 6.
You can switch to the latest version Angular 7.
ng update [package] [--[argument]=[value]]

Updates the current application to latest versions.

Tutorials

Options

dryRun#

Run through without making any changes.

Type boolean
Default false
Aliases d

force#

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

Type boolean
Default false
Aliases f

all#

Whether to update all packages in package.json.

Type boolean

next#

Use the largest version, including beta and RCs.

Type boolean

migrateOnly#

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

Type boolean

from#

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

Type string

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.

Type string

registry#

The NPM registry to use.

Type string