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

cold-sundown-35940

07/07/2023, 8:52 AM
Hi all, is it possible to use Pulumi CLI commands using code (Python)? For example, if I want my code to invoke
pulumi stack init
or
pulumi up
. Currently I'm using
subprocess
standard module to execute it using shell commands. I have went through the docs, but didn't find such possibility. I'm building the CLI tool, which will use Pulumi as its part to deploy user requested resources on the cloud and was wondering is there any elegant way to do it? Thanks in advance for answers!
o

orange-hair-82094

07/07/2023, 8:54 AM
c

cold-sundown-35940

07/07/2023, 8:56 AM
Oh, thanks a lot!!