https://pulumi.com logo
#typescript
Title
# typescript
h

handsome-state-26704

03/04/2020, 2:46 AM
I'm curious - is there a way to use Pulumi like a regular module and invoke a "pulumi up" inside a node.js script, with all the output returned in a string (or object)? The reason I ask, is that I'm looking to use Pulumi in a more continuous model and not just a "one shot" call to pulumi up.
👍 1
w

white-balloon-205

03/04/2020, 4:08 AM
Currently, you can do this by shelling out to the CLI and using
—json
flags. https://github.com/pulumi/pulumi/issues/3901 is tracking adding first class APIs for this.
👀 1
h

handsome-state-26704

03/04/2020, 11:30 PM
@white-balloon-205 Thanks for confirming my research AND looking forward to those first class APIs! :-)