hi I'm interested if there is a way either cli or ...
# general
a
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
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
awesome, great for spinning up ephemeral containers we use for pipelines
@full-painter-18061