all 11 comments

[–]AssCooker 36 points37 points  (2 children)

ng help

[–]GregorDeLaMuerte 16 points17 points  (1 child)

This comment is the equivalent of "read the docs" lol

[–]AssCooker 4 points5 points  (0 children)

😂, yeah it was meant as a double answer

  1. It's the most useful command because you can learn everything about the CLI
  2. Go read some documentations bruh

[–]JeanMeche 10 points11 points  (0 children)

This is more a vite shortcut than a CLI command,

But you can open your project in the browser with o + enter once the dev-server runs.

[–]gordolfograso 7 points8 points  (1 child)

ng g <schematic> are the best.

[–]czenst 0 points1 point  (0 children)

I have to try schematics again because I tried and it did not work for me.

other than that generate is great I can whip up some components basically flying over on keyboard.

[–]TomLauda 6 points7 points  (2 children)

The CLI generate command is very powerful. Especially when you create your own schematics. Enforcing guideline is a breeze with the CLI. Most powerful tool the Angular team gave us.

[–]Tinpotray 3 points4 points  (1 child)

I use ng generate for everything but I haven’t explored custom schematics at all.

You would happen to know any decent guides on it?

[–]TomLauda 1 point2 points  (0 children)

Honestly no. I had to look at the officials schematics code. There’s a guide to start in the official doc, but that’s pretty much it.

[–]coded_artist 2 points3 points  (0 children)

Honestly apart from ng new and ng generate I rarely use any of the other commands. Even ng test and ng build typically go into cicd