@angular/cli
22.2.5 · 28 Oct 2026MIT6.2M / weekRepositorynpmAtom feed
14.2.13 is the newest release of 14.x.
In short
6 breaking4 deprecated
- breaking
Several changes to the
ng analyticscommand syntax. - breaking
Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
- breaking
Support for TypeScript 4.4 and 4.5 has been removed. Please update to TypeScript 4.6.
- breaking
--alloption fromng updatehas been removed without replacement. To update packages which don’t provideng updatecapabilities in your workspacepackage.jsonusenpm update,yarn upgrade-interactiveoryarn upgradeinstead. - breaking
--configurationcannot be used withng run. Provide the configuration as part of the target. Ex:ng run project:builder:configuration. - breaking
Several changes in the Angular CLI commands and arguments handling.
- deprecated
Deprecated option
--prodhas been removed from all builders.--configuration production/-c productionshould be used instead if the default configuration of the builder is not configured toproduction. - deprecated
Deprecated
ng x18nandng i18n-extractcommands have been removed in favor ofng extract-i18n.
Release note
The section about @angular/cli of a note shared by several packages.
Breaking Changes
@angular/cli
- breaking
Several changes to the
ng analyticscommand syntax.ng analytics project <setting>has been replaced withng analytics <setting>ng analytics <setting>has been replaced withng analytics <setting> --global
- breaking
Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
- breaking
Support for TypeScript 4.4 and 4.5 has been removed. Please update to TypeScript 4.6.
- breaking
--alloption fromng updatehas been removed without replacement. To update packages which don’t provideng updatecapabilities in your workspacepackage.jsonusenpm update,yarn upgrade-interactiveoryarn upgradeinstead. - deprecated
Deprecated option
--prodhas been removed from all builders.--configuration production/-c productionshould be used instead if the default configuration of the builder is not configured toproduction. - breaking
--configurationcannot be used withng run. Provide the configuration as part of the target. Ex:ng run project:builder:configuration. - deprecated
Deprecated
ng x18nandng i18n-extractcommands have been removed in favor ofng extract-i18n. - breaking
Several changes in the Angular CLI commands and arguments handling.
ng helphas been removed in favour of the—-helpoption.ng —-versionhas been removed in favour ofng versionandng v.Deprecated camel cased arguments are no longer supported. Ex. using
—-sourceMapinstead of—-source-mapwill result in an error.ng update,—-migrate-onlyoption no longer accepts a string of migration name, instead use—-migrate-only -—name <migration-name>.—-help jsonhelp has been removed.
Deprecations
@angular/cli
- deprecated
The
defaultCollectionworkspace option has been deprecated in favor ofschematicCollections.Before
"defaultCollection": "@angular/material"
After
"schematicCollections": ["@angular/material"]
- deprecated
The
defaultProjectworkspace option has been deprecated. The project to use will be determined from the current working directory.
@angular/cli
| Commit | Description |
|---|---|
| feat - afafa5788 | add --global option to ng analytics command |
| feat - bb550436a | add ng analytics info command |
| feat - e5bf35ea3 | add ng cache command |
| feat - 7ab22ed40 | add disable/enable aliases for off/on ng analytics command |
| feat - 4212fb8de | add prompt to set up CLI autocompletion |
| feat - 0316dea67 | add prompts on missing builder targets |
| feat - 607a723f7 | add support for auto completion |
| feat - 366cabc66 | add support for multiple schematics collections |
| feat - 036327e9c | deprecated defaultProject option |
| feat - fb0622893 | don't prompt to set up autocompletion for ng update and ng completion commands |
| feat - 4ebfe0341 | drop support for Node.js 12 |
| feat - 022d8c7bb | make ng completion set up CLI autocompletion by modifying .bashrc files |
| feat - 2e15df941 | remember after prompting users to set up autocompletion and don't prompt again |
| feat - 7fa3e6587 | support TypeScript 4.6.2 |
| feat - 9e69331fa | use PNPM as package manager when pnpm-lock.yaml exists |
| fix - 6f6b453fb | ng doc doesn't open browser in Windows |
| fix - 8e66c9188 | ng g show descrption from collection.json if not present in schema.json |
| fix - 9edeb8614 | add long description to ng update |
| fix - 160cb0718 | correctly handle --search option in ng doc |
| fix - d46cf6744 | display option descriptions during auto completion |
| fix - 09f8659ce | display package manager during ng update |
| fix - a49cdfbfe | don't prompt for analytics when running ng analytics |
| fix - 4b22593c4 | ensure all available package migrations are executed |
| fix - 054ae02c2 | favor project in cwd when running architect commands |
| fix - ff4eba3d4 | handle duplicate arguments |
| fix - 5a8bdeb43 | hide private schematics from ng g help output |
| fix - 644f86d55 | improve error message for Windows autocompletion use cases |
| fix - 3012036e8 | populate path with working directory in nested schematics |
| fix - 8a396de6a | print entire config when no positional args are provided to ng config |
| fix - bdf2b9bfa | print schematic errors correctly |
| fix - efc3c3225 | remove analytics prompt postinstall script |
| fix - bf15b202b | remove cache path from global valid paths |
| fix - 142da460b | remove incorrect warning during ng update |
| fix - 96a0d92da | remove JSON serialized description from help output |
| fix - 78460e995 | remove type casting and add optional chaining for current in optionTransforms |
| fix - e5bdadac4 | skip prompt or warn when setting up autocompletion without a global CLI install |
| fix - ca401255f | sort commands in help output |
| fix - b97772dfc | support silent package installs with Yarn 2+ |
| fix - 87cd5cd43 | workaround npm 7+ peer dependency resolve errors during updates |
| refactor - d94a67353 | remove deprecated --all option from ng update |
| refactor - 2fc7c73d7 | remove deprecated --prod flag |
| refactor - b69ca3a7d | remove deprecated command aliases for extract-i18n. |
| refactor - 2e0493130 | replace command line arguments parser |