dropbox / dbxcli

A command line client for Dropbox built using the Go SDK
Other
1.05k stars 101 forks source link

Where are dbxcli configuration files stored? #124

Closed se4u closed 5 years ago

se4u commented 5 years ago

I downloaded the precompiled binaries for dbxcli on OSX. (I don't think the platform is important)

On first run everything went smoothly

prastogi@MacOSX ~/go/src/github.com/dropbox/dbxcli Sat Jun 22 21:04:48 master 
$ ./dbxcli account
1. Go to https://www.dropbox.com/1/oauth2/authorize?client_id=<id>&response_type=code&state=state
2. Click "Allow" (you might have to log in first).
3. Copy the authorization code.
Enter the authorization code here:

But then I deleted the authorization and then on subsequent runs dbxcli simple throws an error.

prastogi@MacOSX ~/Downloads Sat Jun 22 21:18:06  
$ ./dbxcli-darwin-amd64  account
Error: Error in call to API function "users/get_current_account": This app is currently disabled.
prastogi@MacOSX ~/Downloads Sat Jun 22 21:18:10  err=255
$ ./dbxcli-darwin-amd64  logout
Error: Error in call to API function "auth/token/revoke": This app is currently disabled.
prastogi@MacOSX ~/Downloads Sat Jun 22 21:18:53  err=255
$ ./dbxcli-darwin-amd64  -v logout
Error: Error in call to API function "auth/token/revoke": This app is currently disabled.

I am guessing that there are some cookies or something being persisted on the file system. Can you say in more detail how I can cleanly reinstall dbxcli ?

se4u commented 5 years ago

Found them '~/.config/dbxcli`