All apps/Angular CLI

Angular CLI

angular-cli

The Angular CLI is a command-line interface tool which allows you to scaffold, develop, test, deploy, and maintain Angular applications.

Runs as ng|macOS, Linux, Windows|angular.dev

Command form

ai-draft · 3 tasks · 9 fields

Create workspaces and generate code. build, serve and test are not in the completion data and are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui angular-cli

ng new

Create a workspace

Create a new Angular workspace and initial application.

Create a workspaceExample values, fixed in this page — nothing here reaches a terminal
Basic
Name*
string
Create default application
string
TasksEach one presets the form for one job
New workspace
namecreate_application
ParametersOnly these flags are editable in the form
Name
string · positional 0
Create default application
string
--create-applicationtruefalse

ng generate component

Generate a component

Generate a new component. Only options present in the completion data are offered.

Generate a componentExample values, fixed in this page — nothing here reaches a terminal
Basic
Component name*
string
Project
string
Change detection
string
TasksEach one presets the form for one job
Generate a component
nameprojectchange_detection
ParametersOnly these flags are editable in the form
Component name
string · positional 0
Project
string
--project
Change detection
string
--change-detection-cDefaultOnPush
Add :host block style
string
--display-block-btruefalse
Create at top level
string
--flattruefalse

ng generate application

Generate an application

Generate a new application in an existing workspace.

Generate an applicationExample values, fixed in this page — nothing here reaches a terminal
Basic
Application name*
string
Style extension
string
TasksEach one presets the form for one job
Generate an application
namestyle
ParametersOnly these flags are editable in the form
Application name
string · positional 0
Style extension
string
--stylecssscsssasslessstyl
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed ng against its version. A form that does not match your version is not offered.