prasmussen / gdrive

Google Drive CLI Client
MIT License
8.99k stars 1.19k forks source link

How to generate shared link? #632

Open rasyidwi opened 2 years ago

rasyidwi commented 2 years ago

How to get generated share link from file was uploaded?

duongnv0499 commented 2 years ago

you can right-click on your uploaded file and choose share. Change "restricted" to "everyone with the link".

mbahgatTech commented 2 years ago

This is how I do it:

gdrive.exe upload -r <folder/file name>
gdrive.exe share <id>
gdrive.exe info <id> > file.txt

Returns:

...
ViewUrl: <url you're looking for>

To get the id you can do:

gdrive.exe list

and it will return:

Id                                  Name                          Type   Size      Created

you can filter that by name or creation date etc.