https://pulumi.com logo
#general
Title
# general
f

flat-insurance-25294

12/20/2019, 11:16 AM
@gifted-engine-92308 try this
Copy code
const { spawn } = require('child_process');
const ls = spawn('pulumi', ['up', '-y']);

ls.stdout.on('data', (data) => {
  console.log(`stdout: ${data}`);
});

ls.stderr.on('data', (data) => {
  console.error(`stderr: ${data}`);
});

ls.on('close', (code) => {
  console.log(`child process exited with code ${code}`);
});