Prepare for Angular Interviews with real-life questions. Utilize quizzes and examples to deepen understanding and enhance your skills. Gear up to ace your interview!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What command do you use to check the version of the Angular CLI?

  1. ng check-version

  2. ng version

  3. ng --version

  4. ng current-version

The correct answer is: ng version

The command to check the version of the Angular CLI is "ng version". This command provides detailed information about the currently installed version of Angular CLI along with the versions of other related packages like Angular framework, Angular Router, and more. It's a concise way to ensure that you are aware of the versions of the dependencies your project is relying on, which is particularly useful when troubleshooting issues or verifying compatibility. Other provided options do not represent valid commands for checking the Angular CLI version. "ng check-version" and "ng current-version" are not recognized commands in Angular CLI, and "ng --version" is often mistakenly thought to be a valid command but is not the standard method to check the version specifically. The correct and most commonly used command is indeed "ng version".