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

quaint-book-39362

06/21/2022, 11:15 PM
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

billowy-army-68599

06/21/2022, 11:24 PM
pulumi stack ls
supports the
--json
flag
q

quaint-book-39362

06/21/2022, 11:25 PM
it wouldn’t help build a one-liner to get the current stack
since it returns an array
b

billowy-army-68599

06/21/2022, 11:32 PM
Copy code
pulumi stack ls --json | jq '.[] | select(.current==true) | .name'
q

quaint-book-39362

06/21/2022, 11:34 PM
that works. thanks!
2 Views