Gdrive: How To Change Different Account?

Created on 13 Jun 2016  路  6Comments  路  Source: prasmussen/gdrive

I want switch different Gdrive's account. How?

Most helpful comment

rm -rf ~/.gdrive/token_*.json removes your first account, and then try to upload a file gdrive upload <filename> it will ask for verification code. I use this method to switch b/w accounts.

All 6 comments

@prasmussen please step by step. this https://github.com/prasmussen/gdrive/issues/84 not answerd

Same issue here. #84 isn't clear at all.

Where is the default config file?

When I first ran the command it created a .gdrive directory in my home. I used gdrive -c ~/.gdrive2 about to go through the auth process for a second account.

I can now use gdrive about to get information about the first (default) account and gdrive -c ~/.gdrive2 about to get information about the second account.

Hope this helps.

rm -rf ~/.gdrive/token_*.json removes your first account, and then try to upload a file gdrive upload <filename> it will ask for verification code. I use this method to switch b/w accounts.

rm -rf ~/.gdrive/token_*.json removes your first account, and then try to upload a file gdrive upload <filename> it will ask for verification code. I use this method to switch b/w accounts.

Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings