Skip to main content
Angular CLI Commands

Angular CLI Commands

Get oriented to command syntax, workspace context, help output, and project-specific targets.

Angular CLI Commands illustration

How it works

Commands generally follow ng <command> [project] [options]. Run help for the installed version and use the correct workspace directory. Some commands require targets or third-party builders that a newly generated workspace does not include; do not assume every command is available by default.

Good practice

  • Check the local Angular CLI version and run commands from the intended workspace.
  • Review angular.json targets and builders before assuming optional commands are configured.
  • Use the package manager and lockfile selected by the project.
  • Review generated files, configuration changes, and build output before committing or deploying.

Further reading: Tutorialspoint: Angular CLI Commands · Current Angular CLI reference · Workspace configuration.