https://pulumi.com logo
#golang
Title
# golang
r

refined-pilot-45584

10/05/2022, 9:17 AM
Hey All, Random question does any one know if there is a way to call/use the Pulumi CLI directly within Go? For example if I wanted to run
pulumi init
or say
pulumi up
from within a Go program is there a way to do this? Without running say
cmd.exec().output()
. Thanks.
q

quiet-lock-69596

10/05/2022, 10:21 AM
This should be what you are looking for: https://www.pulumi.com/docs/guides/automation-api/
👍 1
r

refined-pilot-45584

10/05/2022, 11:51 AM
Thanks So much for this I will dive into this and see if it can solve the problem I am looking at. But I expect it can.
3 Views