Gcloud CLI Drive upload command?

2,014 views
Skip to first unread message

Jonathan H

unread,
Oct 20, 2017, 3:50:33 PM10/20/17
to Google Cloud Developers

I'm probably being really thick here, but I've spent 45 minutes looking around the following:


but NOTHING about Google Drive, except for https://cloud.google.com/sdk/gcloud/reference/auth/login which gives reference to --enable-gdrive-access

I've found something about a nodejs library, but I just want to upload from the cli.

Is the documentation really poor, or is my searching ability failing me? Took me less than one minute to find the aws cli equivalent for uploading to an s3 bucket. It's: 
aws s3 cp /tmp/foo/ s3://bucket/ --recursive --exclude "*" --include "*.jpg
how easy was that? So why so hard to find Google equivalent?

I keep coming to a third party cli called gdrive, but given that this MUST be in the GCloud CLI, I'd rather use the "official" tool.

Thanks.

Zachary Newman

unread,
Oct 20, 2017, 4:09:30 PM10/20/17
to Jonathan H, Google Cloud Developers
No, it's not in the gcloud CLI. As of this moment, there is no official CLI for interacting with Google Drive (which is historically a more consumer-oriented and less developer-oriented product).

If you're looking for the analog of Amazon's s3, Google Cloud Storage (supported in the Cloud SDK via the tool gsutil) is probably the closest thing.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-dev/4b592176-749d-4d4a-aaa0-020ad0bc5134%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan H

unread,
Oct 20, 2017, 4:25:50 PM10/20/17
to Google Cloud Developers
Thanks! Looks like I can interact with Drive through that, so that answers the question.

But that's such a big omission from gcloud! Is it just because gcloud client is so new and still in beta? Is this basic functionality coming soon?

Do other developers never automatically (command line/cron) backup large files to their Drive storage?

Anyway, thanks for the pointer. Will install tomorrow!



On Friday, 20 October 2017 21:09:30 UTC+1, Zachary Newman wrote:
No, it's not in the gcloud CLI. As of this moment, there is no official CLI for interacting with Google Drive (which is historically a more consumer-oriented and less developer-oriented product).

If you're looking for the analog of Amazon's s3, Google Cloud Storage (supported in the Cloud SDK via the tool gsutil) is probably the closest thing.
On Fri, Oct 20, 2017 at 3:46 PM, Jonathan H <digita...@gmail.com> wrote:

I'm probably being really thick here, but I've spent 45 minutes looking around the following:


but NOTHING about Google Drive, except for https://cloud.google.com/sdk/gcloud/reference/auth/login which gives reference to --enable-gdrive-access

I've found something about a nodejs library, but I just want to upload from the cli.

Is the documentation really poor, or is my searching ability failing me? Took me less than one minute to find the aws cli equivalent for uploading to an s3 bucket. It's: 
aws s3 cp /tmp/foo/ s3://bucket/ --recursive --exclude "*" --include "*.jpg
how easy was that? So why so hard to find Google equivalent?

I keep coming to a third party cli called gdrive, but given that this MUST be in the GCloud CLI, I'd rather use the "official" tool.

Thanks.

--
You received this message because you are subscribed to the Google Groups "Google Cloud Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-d...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages