is there a command to show the current stack? some...
# general
q
is there a command to show the current stack? something like
pulumi stack show-current
. though it would be great
pulumi stack
supported the
--json
flag.
b
pulumi stack ls
supports the
--json
flag
q
it wouldn’t help build a one-liner to get the current stack
since it returns an array
b
Copy code
pulumi stack ls --json | jq '.[] | select(.current==true) | .name'
q
that works. thanks!