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

tall-monitor-77779

11/05/2018, 5:51 PM
any easy way to run
pulumi up
programatically?
c

cold-train-5848

11/05/2018, 6:04 PM
pulumi up --yes
or
pulumi up --non-interactive
t

tall-monitor-77779

11/05/2018, 6:05 PM
any way to get json output?
c

creamy-potato-29402

11/05/2018, 7:15 PM
@tall-monitor-77779 I believe there is not an API for Pulumi’s CLI, yet. @white-balloon-205?
t

tall-monitor-77779

11/05/2018, 7:17 PM
was just looking at your github app, seems to be doing something similar to what I was wanting (shows changes etc.) but I think thats closed source?
w

white-balloon-205

11/05/2018, 7:24 PM
There is JSON output for several commands, and @bitter-oil-46081 is working on adding more this milestone. That will provide a programmatic “api” to the CLI which can be invoked from any environment. We may in the future add language-specific SDKs to wrap that - but near term focus is on a programmatically scriptable CLI.
b

bitter-oil-46081

11/05/2018, 7:26 PM
was just looking at your github app, seems to be doing something similar to what I was wanting (shows changes etc.) but I think thats closed source?
Lame as it is, right now the GH app works by just `sed`'ing the output. When we add JSON output to
update
and
preview
the current thinking is you'll get a stream JSON objects that represent events the engine is creating, and one of them will be a summary event that happens at the end of a preview or update.
t

tall-monitor-77779

11/05/2018, 7:28 PM
sounds great
any ETA?
b

big-piano-35669

11/05/2018, 9:24 PM
Note that you can also do
pulumi stack output
to get the full contents of the stack in JSON form (the resources, etc). I realize this isn't the same as the event stream, but may be useful depending on what you're looking to do.
t

tall-monitor-77779

11/05/2018, 9:29 PM
thanks Joe, will give that a try
I think its quite an important feature for gitops type workflows
👍 1
b

bitter-oil-46081

11/05/2018, 11:18 PM
any ETA?
Plan is to complete it by thanksgiving (when the current milestone ends).