When users need to interact with your application, it needs to be a consistent experience. That means that whatever you ask needs to be kept in context, presented properly, and shown in the same way that everything else is. Some ways users can interact with your application include text fields, select fields, yes/no confirmation, and other inputs. In each instance, it makes sense to automate what you can. For example, in the yes/no confirmation box, we should accept pressing “y” in place of using the arrows to highlight “yes” and hitting enter.

You can see a number of examples in the README of CLI-UI: https://github.com/Shopify/cli-ui