Angular Builds edited this page Oct 22, 2018 · 4 revisions

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.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.