How to execute a CLI command?

Hi everyone! I am new to Wappler :slight_smile:

I want to execute a CLI command.

In node.js, I can spawn a child process and run my CLI command. For example,

var exec = require('child_process').exec;
var cmd = 'my-cli-app --version';

exec(cmd, function(error, stdout, stderr) {
    console.log(stdout)
});

How can I do this the Wappler way?

Thank you :pray:

Community Page
Last updated: