Angular CLI Prompt

What is Angular?

Angular is a development platform built on TypeScript. It includes:

  • A framework based on the part of building so many web applications. A collection of well-integrated libraries includes many features, including routing, form management, client-server communication, and more.
  • A series of developer tools to help you develop, build, test, and update your code.

CLI in Angular

Angular CLI is a command-line interaction tool that you use to initiate, develop, scale, and store Angular applications from the command shell. It comes with instructions that help us quickly build and start our project. These commands can be executed directly with a command prompt or indirectly with a compatible UI, i.e., Angular Console.
The Angular CLI command number uses a complex process in your code, such as compiling, constructing, or testing.

Some commands available to create a project, a component and services, change the port etc are:

  • To install Angular CLI on our system.
    npm install -g @angular/cli
  • To create a new project.
    ng new PROJECT-NAME
    ng serve //

    ng serve // will compile your project
  • To view the output of your project, type the following in the browser.

    4200 is the default port used when a new project is created.
  • To change the port no.
    ng serve --host --port 4201