Step to install ionicv5 in latest CLI?

Due to some old requirement to support for iOS 12, therefore need to use ionic v5, what is the step to install ionic v5?

Saw this ariticle, but the new project will install latest version of angular, capacitor, etc. Is that mean I have to manually downgrade all library manually ?