Maybe you are looking for sth like this? npm install prompt --save
although it does not have a button, for this you will need the ui interface, but not a command prompt
var prompt = require('prompt'); prompt.get(['choice'], function(err, result) { if (result.choice == "0") {
source share