The REPL was created to give a more fluid flow when executing commands remotely. It allows switching between targets and evaluating tasks more quickly. This is very useful when you need to inspect an inner system to understand its state, or why a program is not behaving as expected.
:help will show a quick guide about the known commands
Each command is evaluated remotely after you hit enter
A target must be set before evaluating commands, type
We have set
mysql-read target, now it's possible to issue MySQL commands
You could also write multiline statements pressing ctrl+e to activate it. To evaluate, press the hotkey again and hit enter.
If you want to change target and starting evaluating another service, issue
To exit from REPL issue the hotkey
ctrl+c, it also exits from multiline prompt if it's toogled.