hey y’all, does anyone know why passing `-y` does ...
# general
a
hey y’all, does anyone know why passing
-y
does not auto-accept the prompt when a stack doesn’t exist?
example:
Copy code
pulumi up --stack local-security -y --refresh                                                                                                                                                                                                
Logged in to jon-s4t as coder (file://~/.pulumi/local)                                                                                                                                                                                       
The stack 'local-security' does not exist.                                                                                                                                                                                                   
                                                                                                                                                                                                                                             
If you would like to create this stack now, please press <ENTER>, otherwise press ^C:                                                                                                                                                        
Created stack 'local-security'
b
this is because the
--yes
is only designed to skip the preview of the code, it's not designed to also create the stack having said that, this should be an option - would you mind opening an issue at github.com/pulumi/pulumi
b
Looking for “—non-interactive”? In which case I think you’d just get a stack doesn’t exist error
a
ah, I missed --non-interactive!