Upgrade tool cakephp4 not working

I have a cakephp version 3.9 with code from version 3.2
I want to upgrade to cakephp4 using the upgrade tool.
Does the upgrade tool change cake3 syntax to 4?

these commands are not working
bin/cake upgrade rector --rules phpunit80 <path/to/app/tests>
bin/cake upgrade rector --rules cakephp40 <path/to/app/src>


Are you facing any errors? Please provide error message along with stack trace (and screen shot if possible), so people can help you.