Command line Dropbox uploader for Windows
pneumatictube -f <file> -p <path>
Uploads the specified file to the specified path in Dropbox. The
-f option can also point to a folder, in which case each file in the folder will be uploaded to Dropbox. Currently only the files in specified folder are uploaded - child folders are ignored.
pneumatictube -f .\report.txt -p /docs
report.txt to the
docs folder in the Dropbox account.
-f(required) The location of the file to upload
-p(required) The destination path in Dropbox
-rForce re-authorization with Dropbox
-cForce chunked uploading
-bDisplay progress in bytes instead of percentage when using chunked uploading
-qSuppress all output (except errors)
-nSuppress progress reporting during chunked uploading
The first time you run PneumaticTube it will open a browser and ask you to authorize it for your Dropbox account.
If you ever want to deauthorize it (for example, to authorize it for a different account), you can run it with the
-r (reset) option.
Dropbox requires chunked uploading (uploading the file in many small parts, instead of one big blob) for files above 150 MB. Pneumatictube will automatically use chunked uploading for files which require it. For smaller files, you can specify the
-c option to force chunked uploading. This is useful if you want a progress indicator during the upload.
If you specify the
-c option, you can also use the
-b option to specify that you want your progress updates in bytes instead of percentage (the default), or
-n to suppress progress reporting.
If you're not into building the project from source, you can download the latest release as a
.zip. Or, if you're a chocolatey user, it's also available as a package. Just run
choco install pneumatictube.portable and you should be good to go.
This is built on the .NET SDK for the Dropbox API v2 and on Command Line Parser. I basically just needed an easy way for a TeamCity server to push artifacts out to a Dropbox folder, and I didn't like all the awkward "run Dropbox as a service" hacks out there.
Image Credit: By Serych at cs.wikipedia [Public domain], from Wikimedia Commons