mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-12 12:47:42 +00:00
42 lines
705 B
Plaintext
42 lines
705 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# ng
|
|
|
|
> Create and manage Angular applications.
|
|
> More information: <https://angular.dev/cli>.
|
|
|
|
- Create a new Angular application inside a directory:
|
|
|
|
`ng {{[n|new]}} {{project_name}}`
|
|
|
|
- Compile the application and start a local development server:
|
|
|
|
`ng {{[s|serve]}}`
|
|
|
|
- Create a new component:
|
|
|
|
`ng {{[g|generate]}} {{[c|component]}} {{component_name}}`
|
|
|
|
- Build an Angular application or library:
|
|
|
|
`ng {{[b|build]}}`
|
|
|
|
- Run unit tests:
|
|
|
|
`ng {{[t|test]}}`
|
|
|
|
- Add a package to the current project:
|
|
|
|
`ng add {{package}}`
|
|
|
|
- Update workspace dependencies:
|
|
|
|
`ng update`
|
|
|
|
- Display version:
|
|
|
|
`ng {{[v|version]}}`
|