you dont need the boat out of the water, however it will make it easier. you can do it in the water if you want. this is a VP AQ drive, not a Mercruiser.
with your AQ231, you should have a 280 drive. the shift cable goes from the helm binnacle controls into a hose clipped high on the inside...