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

agreeable-australia-82656

12/03/2019, 5:42 PM
hi I'm interested if there is a way either cli or api or to get an access token rather than via the web front end?
f

future-barista-68134

12/03/2019, 8:33 PM
hey @agreeable-australia-82656, you can use this API call to retrieve the token.
Copy code
curl -X POST -H "Content-Type: application/json" -H "Authorization: token pul-token" -d '{"description":"description of token"}' <https://api.pulumi.com/api/user/tokens?reason=console>
Note: currently undocumented but plan is to make this public.
👍 2
oh and replace the
pul-token
from above with a pulumi token to auth to the api
a

agreeable-australia-82656

12/04/2019, 9:36 AM
awesome, great for spinning up ephemeral containers we use for pipelines
@full-painter-18061