33 lines
651 B
Markdown
Raw Normal View History

# ng serve
> Build and serve the application, rebuilding on file changes.
> More information: <https://angular.dev/cli/serve>.
- Start the application:
`ng {{[s|serve]}}`
- Start the application and open it in a browser:
`ng {{[s|serve]}} {{[-o|--open]}}`
- Start the application on port `4201`:
`ng {{[s|serve]}} --port 4201`
- Start the application and listen on all network interfaces:
`ng {{[s|serve]}} --host {{0.0.0.0}}`
- Start the application using HTTPS:
`ng {{[s|serve]}} --ssl`
- Start the application with verbose logging:
`ng {{[s|serve]}} --verbose`
- Rebuild the application when files change:
`ng {{[s|serve]}} --watch`