https://pulumi.com logo
Title
b

bland-pharmacist-96854

03/28/2023, 1:49 PM
How I am supposed to use and stack existing the pulumi service from my local machine?
pulumi stack import
?
b

billowy-army-68599

03/28/2023, 1:56 PM
it’s not super clear what you mean?
b

bland-pharmacist-96854

03/28/2023, 1:58 PM
I've created and deployed a stack from my local machine with pulumi stack init. Then, I deleted my local folder and git cloned the repo again, and when I ran
pulumi stack ls,
there were no stacks. And if I try to import it from the pulumi service using
pulumi stack import
it says that the stack doesn't exist but I can see it in the pulumi dashboard
b

billowy-army-68599

03/28/2023, 2:02 PM
if you go into the stack page, and into settings and options, you should see this
b

bland-pharmacist-96854

03/28/2023, 2:27 PM
yes, and I copy paste the
pulumi stack select ...
line but it says that
no stack named ... found
b

billowy-army-68599

03/28/2023, 2:28 PM
can you relogin to the service and try again? what does
pulumi whoami
print?
b

bland-pharmacist-96854

03/28/2023, 2:29 PM
solved, wrong account 🤦🏾 thanks!
s

salmon-account-74572

03/28/2023, 3:03 PM
Slightly related: the Starship command prompt (https://starship.rs) supports showing the Pulumi account in the prompt. 🙂
b

bland-pharmacist-96854

03/28/2023, 8:56 PM
I'll take a look, thanks!