I was having some fun with this but when I got to the hidden cave by the lagoon, there didn't seem to be any way to get out of there.
Type the same command as you typed to go in there.