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