digitalocean / doctl

The official command line interface for the DigitalOcean API.
https://docs.digitalocean.com/reference/doctl/
Apache License 2.0
3.26k stars 397 forks source link

Create new API keys from doctl #936

Open woo2 opened 3 years ago

woo2 commented 3 years ago

What is the problem this feature would solve? Please describe. It would be great if I could create a new API key with doctl. Using the web interface is very slow, as I usually end up on digitalocean.com, find the sign in button, then click through to my account, re-authenticate, create a new key, and then find the shell where I wanted to use it.

Describe the solution you'd like Ideally, I could run doctl account key new [-rw] [label], complete a second factor in a new browser window or even within the terminal, and be given a new API key. I could also run doctl account key revoke [keyid] to delete the key later

Additional context With go-libfido2, I could use my yubikey from the command line to provide a second factor

ChiefMateStarbuck commented 3 years ago

Hello Paul. We are currently exploring implementations for this feature. Thank you for the suggestion.

h0jeZvgoxFepBQ2C commented 2 years ago

How is the status with this? Will this feature include also keys for Spaces?

Anna-Katona commented 1 year ago

Hey team! Any updates?