Skip to content

Vultour/dropbox-static-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

dropbox-static-cli

A CLI interface for remotely interacting with Dropbox

Synopsis

This CLI tool allows you to interface with your Dropbox storage without the need for local dropbox daemon or sync storage. This is accomplished using the Dropbox HTTP API.

Supported operations

  • Browse
  • Download
  • Upload
  • User / Quota info

Prerequisites

The only external requirement is the official Dropbox SDK.

Run pip install dropbox to install it

Setup

You need to obtain a developer API key for your dropbox account. Dropbox makes it more painful than it should be to accomplish, but it shouldn't take you more than a minute.

Start by navigating to your App Console. Click the Create App button in the top right, choose Dropbox API (business is not supported), select Full Dropbox and give your app a name. This can be whatever, just make sure it doesn't contain dropbox because Dropbox is touchy about that. Click Create App to save. You should get redirected to the page of your new app. On this page, about halfway through, is a caption saying Generated access token - click the Generate button below it. You will be presented with your new API key, make sure to save this or you'll have to make a new one if it gets lost.

Great, now you've got your API key! This key is used with virtually every call to this Dropbox CLI (either by directly passing it in with --api-key or by saving it into a file - refer to the --help option for more details!).

Usage

Refer to ./dropbox-cli [subcommand] --help for usage information

usage: dropbox-cli [-h] [-v] [-k API_KEY] {list,get,put,info} ...

A command line tool for interacting with Dropbox without the need for local
sync storage

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose output
  -k API_KEY, --api-key API_KEY
                        Dropbox API key

Available subcommands:
  {list,get,put,info}
    list                List items in Dropbox
    get                 Download items from Dropbox
    put                 Upload items to Dropbox
    info                Dropbox account information

Note: Put your API key in /home/username/.dropbox-static-cli-key to
avoid having to pass in --api-key with every command!

About

CLI interface for remotely interacting with Dropbox. [mirror]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages