To update Angular, run the following command replacing VERSION with the version you want to update to:
npm run ng -- update @angular/core@VERSION @angular/cli@VERSION @angular/material@VERSION angular-eslint@VERSION
npm run ng -- update @angular/core@19 @angular/cli@19 @angular/material@19 angular-eslint@19
To generate an Angular Material 3 (M3) theme, you can use the Angular Material schematics:
ng generate @angular/material:m3-theme
npm run ng -- generate @angular/material:m3-theme