command to upgrade latest angular cli version code example
Example 1: update angular cli globally
npm update @angular/cli -g
Example 2: update angular cli 10
content_copy
ng update @angular/cli @angular/core
npm update @angular/cli -g
content_copy
ng update @angular/cli @angular/core