For step-by-step instructions on how to update to the latest Angular release, use the interactive update guide at update.angular.io
If your application uses the CLI, you can update to version 9 automatically with the help of the ng update script
Steps to upgrade to Angular 9
1. Identify the existing version of angular, in my case it was Angular 8.
Angular command $ ng version
2. Upgrade Angular CLI
Angular command $ ng update @angular/cli @angular/core --next
Steps to upgrade to Angular 9
1. Identify the existing version of angular, in my case it was Angular 8.
Angular command $ ng version
2. Upgrade Angular CLI
Angular command $ ng update @angular/cli @angular/core --next
Now your Angular CLI and Angular Project is upgraded to Angular 9 successfully.. As Angular 9 is in RC period, the flag --next is required while using ng update command. This flag is not required, once final version of Angular 9 is released.The above commands will run a series of small migrations that will convert the code of your application to be compatible with version 9 as shown in above image.