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

[Idea] Add SCP command do doctl #141

Closed xmudrii closed 7 years ago

xmudrii commented 8 years ago

I'm thinking about idea of implementing scp into doctl, so you can easy upload or download files from your droplet. It will help DigitalOcean users to have one tool, which does everything, from managing droplets, images... to SSH access and possibly SCP. Windows users will benefit too, as they don't have integrated SCP in shell.

I got idea of making it in two commands: doctl compute download <droplet-id> <remote-location> <local-location> doctl compute upload <droplet-id> <local-location> <remote-location>

As far as I researched, I don't think it would be hard to make it. For Linux/OS X users, we can use system SCP (like now SSH, external). It should work well. Yet for Windows users I found two SCP packages: Pacakge scp from github.com/tmc/scp. Package goScp from github.com/kkirsche/go-scp.

I wanted to know does doctl collaborators/DigitalOcean thought about this idea. Would it be useful, is it worth to add it, is it good idea? Maybe, I could do it myself, but I want to hear comments on it :)

bryanl commented 8 years ago

Hello,

I think this idea sounds useful, however, I would like to not add any more features to doctl if possible. Instead, I would like to renew interest in the plugins project and add this this type of functionality there.

akshaychhajed commented 8 years ago

@bryanl could not find much information about plugins for doctl. Please elaborate.

bryanl commented 8 years ago

It's not documented. It only lives in the code as an unfinished idea. When it comes back into scope, I was thinking about integrating https://github.com/hashicorp/go-plugin.

xmudrii commented 7 years ago

Closing this issue to make tracker cleaner. ;)