LinuxCommandLibrary

ng-update

updates Angular and dependencies with automatic migrations

TLDR

Check for updates

$ ng update
copy
Update Angular core
$ ng update @angular/core @angular/cli
copy
Update specific package
$ ng update [package-name]
copy
Force update
$ ng update @angular/core --force
copy
Update to next version
$ ng update @angular/core --next
copy

SYNOPSIS

ng update [packages...] [options]

DESCRIPTION

ng update updates Angular and dependencies with automatic migrations. Runs schematics to update code for breaking changes. Part of Angular CLI.

PARAMETERS

--force

Force update regardless of errors.
--next
Update to next/prerelease version.
--migrate-only
Only run migrations.
--from version
Migrate from specific version.
--to version
Migrate to specific version.

SEE ALSO

ng(1), ng-add(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community