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

blue-pharmacist-31672

11/04/2021, 12:05 PM
Is there a way to run a
pulumi up
command from a different directory than the one your project is stored in? I'm trying something like
Copy code
pulumi up ./path/to/project
Where my stack yaml and pulumi yaml are stored. However, pulumi starts asking me for the project name and description when I do this rather than running the existing one and then errors with a
no file or directory
. I've tried specifying using the
--stack
flag or using the
file://
system specifier but no luck. Any ideas always appreciated. Thanks 😄
s

sparse-spring-91820

11/04/2021, 12:30 PM
I think you are looking for --cwd flag
pulumi up -y --cwd ./path/to/dir
b

blue-pharmacist-31672

11/04/2021, 1:41 PM
Thank you very much @sparse-spring-91820! I missed it because it was in the parent commands 😓