CLI Prompts

Go back to Tutorial

The CLI will now prompt users when running common commands like ng new or ng add @angular/material to help you discover built-in features like routing or SCSS support.


CLI Prompts have been added to Schematics, so any package publishing Schematics can take advantage of them by adding an x-prompt key to a Schematics collection.


“routing”: {

“type”: “boolean”,

“description”: “Generates a routing module.”,

“default”: false,

“x-prompt”: “Would you like to add Angular routing?”



Go back to Tutorial

Get industry recognized certification – Contact us