Using yargs is it possible for the user of the CLI to specify which command they want to call with the arguments and then the CLI replies with the following message before running the code:
Are you sure you want to execute this code on environment X with these settings: .... Y / N:
Y would execute the code N would do nothing
Update: Just found an npm modulecalled yargs-interactive. I think this is the answer to my question.