Packages

@angular/cli

22.2.5 · 28 Oct 2026MIT6.2M / weekRepositorynpmAtom feed

Your version

14.0.0

major2 Jun 2022Where it was published

14.2.13 is the newest release of 14.x.

In short

6 breaking4 deprecated

  • breaking

    Several changes to the ng analytics command 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

    --all option from ng update has been removed without replacement. To update packages which don’t provide ng update capabilities in your workspace package.json use npm update, yarn upgrade-interactive or yarn upgrade instead.

  • breaking

    --configuration cannot be used with ng 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 --prod has been removed from all builders. --configuration production/-c production should be used instead if the default configuration of the builder is not configured to production.

  • deprecated

    Deprecated ng x18n and ng i18n-extract commands have been removed in favor of ng 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 analytics command syntax.

    • ng analytics project <setting> has been replaced with ng analytics <setting>

    • ng analytics <setting> has been replaced with ng 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

    --all option from ng update has been removed without replacement. To update packages which don’t provide ng update capabilities in your workspace package.json use npm update, yarn upgrade-interactive or yarn upgrade instead.

  • deprecated

    Deprecated option --prod has been removed from all builders. --configuration production/-c production should be used instead if the default configuration of the builder is not configured to production.

  • breaking

    --configuration cannot be used with ng run. Provide the configuration as part of the target. Ex: ng run project:builder:configuration.

  • deprecated

    Deprecated ng x18n and ng i18n-extract commands have been removed in favor of ng extract-i18n.

  • breaking

    Several changes in the Angular CLI commands and arguments handling.

    • ng help has been removed in favour of the —-help option.

    • ng —-version has been removed in favour of ng version and ng v.

    • Deprecated camel cased arguments are no longer supported. Ex. using —-sourceMap instead of —-source-map will result in an error.

    • ng update, —-migrate-only option no longer accepts a string of migration name, instead use —-migrate-only -—name <migration-name>.

    • —-help json help has been removed.

Deprecations

@angular/cli

  • deprecated

    The defaultCollection workspace option has been deprecated in favor of schematicCollections.

    Before

    "defaultCollection": "@angular/material"

    After

    "schematicCollections": ["@angular/material"]
  • deprecated

    The defaultProject workspace option has been deprecated. The project to use will be determined from the current working directory.

@angular/cli

CommitDescription
feat - afafa5788add --global option to ng analytics command
feat - bb550436aadd ng analytics info command
feat - e5bf35ea3add ng cache command
feat - 7ab22ed40add disable/enable aliases for off/on ng analytics command
feat - 4212fb8deadd prompt to set up CLI autocompletion
feat - 0316dea67add prompts on missing builder targets
feat - 607a723f7add support for auto completion
feat - 366cabc66add support for multiple schematics collections
feat - 036327e9cdeprecated defaultProject option
feat - fb0622893don't prompt to set up autocompletion for ng update and ng completion commands
feat - 4ebfe0341drop support for Node.js 12
feat - 022d8c7bbmake ng completion set up CLI autocompletion by modifying .bashrc files
feat - 2e15df941remember after prompting users to set up autocompletion and don't prompt again
feat - 7fa3e6587support TypeScript 4.6.2
feat - 9e69331fause PNPM as package manager when pnpm-lock.yaml exists
fix - 6f6b453fbng doc doesn't open browser in Windows
fix - 8e66c9188ng g show descrption from collection.json if not present in schema.json
fix - 9edeb8614add long description to ng update
fix - 160cb0718correctly handle --search option in ng doc
fix - d46cf6744display option descriptions during auto completion
fix - 09f8659cedisplay package manager during ng update
fix - a49cdfbfedon't prompt for analytics when running ng analytics
fix - 4b22593c4ensure all available package migrations are executed
fix - 054ae02c2favor project in cwd when running architect commands
fix - ff4eba3d4handle duplicate arguments
fix - 5a8bdeb43hide private schematics from ng g help output
fix - 644f86d55improve error message for Windows autocompletion use cases
fix - 3012036e8populate path with working directory in nested schematics
fix - 8a396de6aprint entire config when no positional args are provided to ng config
fix - bdf2b9bfaprint schematic errors correctly
fix - efc3c3225remove analytics prompt postinstall script
fix - bf15b202bremove cache path from global valid paths
fix - 142da460bremove incorrect warning during ng update
fix - 96a0d92daremove JSON serialized description from help output
fix - 78460e995remove type casting and add optional chaining for current in optionTransforms
fix - e5bdadac4skip prompt or warn when setting up autocompletion without a global CLI install
fix - ca401255fsort commands in help output
fix - b97772dfcsupport silent package installs with Yarn 2+
fix - 87cd5cd43workaround npm 7+ peer dependency resolve errors during updates
refactor - d94a67353remove deprecated --all option from ng update
refactor - 2fc7c73d7remove deprecated --prod flag
refactor - b69ca3a7dremove deprecated command aliases for extract-i18n.
refactor - 2e0493130replace command line arguments parser