Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify auth token as an argument #63

Closed
hermanocabral opened this issue Feb 18, 2017 · 3 comments
Closed

Specify auth token as an argument #63

hermanocabral opened this issue Feb 18, 2017 · 3 comments

Comments

@hermanocabral
Copy link

Howdy,

What about having the option to specify the auth token as an argument?

Something like:
dropboxcli put file_here destination_here -v -token token_here

@diwakergupta
Copy link
Collaborator

@hermanocabral sure, that's relatively easy to add (and in fact earlier versions used to have this capability). What would you do this with capability though? The only use-case I can think of is making it easier to debug/test using your own app tokens.

@hermanocabral
Copy link
Author

Hey!

Well, the main use case would be to use dbxcli in scripts and stuff like that. Right now I'm using Azure Blob storage + AzCopy (https://docs.microsoft.com/en-us/azure/storage/storage-use-azcopy) but using Dropbox would be so much easier IF I could simply pass an auth token in the command line.

@slzarate
Copy link

slzarate commented Mar 14, 2017

@hermanocabral: I currently use dbxcli in a script. I've found that, somehow, the following seems to work:
echo "$auth_code" | /dbxcli version && echo "$auth_code"

If you remove one of the echoes it no longer works (I think; it's been a while since I worked on this). But that should work.

ETA: I do agree, though -- a defined way to do this would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants