I am using node-wp-cli to run WP-cli commands from Node.js. All inbuilt WP-cli commands works perfectly but I stuck while trying to run my custom WP-cli commands.
Is there a way to to run my custom WP-Cli commands wp MyRegisteredCommand SubCommand from node-wp-cli? like:
WP.MyRegisteredCommand.SubCommand(function(err,res){ //get response
console.log(res);
});