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:

1 Like

Figured it out. I just wrote a custom module for it.
That’s a nice feature you got, Wappler team! :100: