"What do you want to do?"
o Get a list of databases
o Connect to a database
"Do you want to connect to dev or prod?"
o dev
o prod
o I don't know (this option could link the user to documentation on the different environments; maybe the user is a student on his or her first internship and has never even heard of the concept)
"What's the shard number?"
"Which side?"
The CLI could output the equivalent, non-interactive command before performing the requested action, making it a teaching opportunity as well. Maybe the "I don't know" option or this approach in general is overkill, but I generally think tools should be smarter. You don't need as much documentation if your tools are inherently capable of guiding you to the right answer.