how to check if angular cli is intalled or not code example Example: how to check for angular cli version ng --version