Ionic v3 project convert to v4

I want to convert my v3 project with v4 but when i try to create a ionic project it was generating the v7.1.1 project based on cli . anyone know the solution help me out