update angular cli
snippet in javascript

ng update @angular/core @angular/cli

user2581

npm uninstall -g angular-cli
npm install -g @angular/cli@latest

install angular cli

user333

npm install -g @angular/cli
ng new my-dream-app
cd my-dream-app
ng serve

update angular cli

user8378

For updating angular cli type this command :
ng update @angular/cli @angular/core   

update angular cli

user7905

npm uninstall -g @angular-cli
npm install -g @angular/cli@latest

update angular cli 10

user9793

      
        content_copy
      
      ng update @angular/cli @angular/core
    

update angular cli

user6487

For updating angular cli type this command :
ng update @angular/cli @angular/core