nurdtechie98 / drive-cli

A command line interface for accessing google drive
MIT License
570 stars 90 forks source link

can't authorized through remote machines on cli. #105

Open pankaj151 opened 4 years ago

pankaj151 commented 4 years ago

so i was trying this sweet cli tool for moving local-data to the drive but it seems it's not passing the parameters of usual " --noauth_local_webserver" any way following is the output.

/home/ubuntu/.local/lib/python3.8/site-packages/oauth2client/_helpers.py:255: UserWarning: Cannot access /home/ubuntu/gist/drive-cli/drive_cli/token.json: No such file or directory warnings.warn(_MISSING_FILE_MESSAGE.format(filename))

Your browser has been opened to visit:

https://accounts.google.com/o/oauth2/auth?client_id=xxxxxxxxxxxxxxgoogleusercontent.com&redirect_uri=http%3A%2F%2Flocalhost%3A8080%2F&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&access_type=offline&response_type=code

If your browser is on a different machine then exit and re-run this application with the command-line parameter

--noauth_local_webserver

^C

bmwant commented 4 years ago

--noauth_local_webserver this parameter just does not work

grgcnnr commented 4 years ago

use the --remote flag

bmwant commented 4 years ago

@grgcnnr thanks I was able to do that

$ drive --remote login

image