Welcome to the Angular CLI documentation! The Angular CLI (Command Line Interface) is a powerful tool that helps you develop Angular applications more efficiently. Whether you are a beginner or an experienced Angular developer, this guide will help you get started with the CLI and its features.

Quick Start

To get started with Angular CLI, follow these steps:

  1. Install Node.js and npm: Angular CLI requires Node.js and npm. You can download and install Node.js from here.
  2. Install Angular CLI: Once Node.js and npm are installed, open your terminal and run the following command:
    npm install -g @angular/cli
    
  3. Create a new Angular project: After installing the CLI, you can create a new project by running:
    ng new my-angular-project
    
    Replace my-angular-project with your desired project name.
  4. Navigate to your project: Change directory to your new project:
    cd my-angular-project
    
  5. Serve your application: To see your application in action, run:
    ng serve
    
    Open your browser and go to http://localhost:4200 to view your application.

Features

The Angular CLI provides several features that make developing Angular applications easier:

  • Project generation: Generate a new Angular project with a single command.
  • Development server: Serve your application locally with hot reloading.
  • Building: Build your application for production with optimizations.
  • Test runner: Run unit and end-to-end tests.
  • E2E testing: Run end-to-end tests against your application.

Resources

For more detailed information, please refer to the following resources:

Angular CLI Logo


If you are looking for more information on Angular CLI, you might want to check out our Angular tutorials section. Happy coding!