Thuta Learning
BasicWeb Developmentintermediate

Get Started (CLI)

Relax. We'll talk through this in plain words — no textbook voice.

The easiest way to start an Angular project is to use the Angular CLI. It's a tool that sets up the project folder, build system, development server, component-generation commands, and more, all in one go.

What You'll Need to Get Started

1. Have Node.js installed.

2. Open Terminal / Command Prompt.

3. Install the Angular CLI.

4. Create a new project and run the local server.

If you hit an error while running these commands, check your Node version, internet connection, and permissions first.

typescript
# 1. Install Angular CLI globally
npm install -g @angular/cli

# 2. Create a new project
ng new my-angular-app

# 3. Navigate into the project directory and run
cd my-angular-app
ng serve --open
You should see
(After running the commands above in the terminal, you can open the Angular app in your browser at http://localhost:4200/)
Get Started (CLI) | Thuta Learning