2018-10-18 14:08:09 -07:00

1.8 KiB

Documentation below is for CLI version 6. For version 7 see here.

ng update

Overview

ng update Updates the current application to latest versions.

ng update [package]

Options

dry-run

--dry-run (alias: -d)

Run through without making any changes.

force

--force

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

all

--all

Whether to update all packages in package.json.

next

--next

Use the largest version, including beta and RCs.

migrate-only

--migrate-only

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

from

--from

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

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.

registry

--registry

The NPM registry to use.