petems / tugboat

A command line tool for interacting with your DigitalOcean droplets.
MIT License
1.45k stars 89 forks source link

API call to add ssh keys #245

Closed vg-github closed 8 years ago

vg-github commented 8 years ago

Hello All,

At the moment I cannot add SSH keys via the API, is this feature coming anytime soon? I see v2 of the DO api supports this here:

https://developers.digitalocean.com/documentation/v2/#create-a-new-key

This would be great to have, it helps quite a lot with the provisioning.

Many thanks, Vlad

petems commented 8 years ago

@vladimirghetau: What version of tugboat do you have? That should be avaliable as the add-key function!

~ $ tugboat help add-key
Usage:
  tugboat add-key KEY-NAME

Options:
  -k, [--key=KEY]    # The string of the key
  -p, [--path=PATH]  # The path to the ssh key
  -q, [--quiet]

Description:
  This uploads a ssh-key to DigitalOcean, which you can then assign to a droplet at creation time so you can connect to it with the key rather than a password.
vg-github commented 8 years ago

Excellent!

I am using the latest version, installed via gem, however this add-key wasn't in the README documentation.

All good now, I tried it and it's there. Super product!

Vlad

petems commented 8 years ago

Thanks! Yeah, I don't think our docs have kept up with our features, I'll add that one in now 👍