How to migrate Bootstrap 4 to Bootstrap 5 in existing projects

Bootstrap 5 introduced so many breaking changes, including a lot of names for classes. I have Angular project where I used Bootstrap 4 classes in more than 10k places. It is impossible to go and manually change each class to reflect Bootstrap 5 names.

Is there some command or CLI tool that can do migration from Bootstrap 4 to Bootstrap 5 and change everything needed?