purely command-line operation of dropbox

Is it possible to make use of dropbox account from purely command-line solution e.g a bash script?

I have so far failed to find a comprehensive answer to this question.

I have used Git for sometime now and it is quite easy to use from commandline. If dropbox does not have a robust command-line version then what alternatives exist to dropbox which do have this feature?

Since we are approaching end of 2020, maybe things have changed. I use windows but will access dropbox through Cygwin which is basically a way to access Linux like functionality in windows.

3

2 Answers

Make use of dropbox account from purely command-line solution?

Have you tried dbxcli?

dbxcli: A command line tool for Dropbox users and team admins

Features

  • Supports basic file operations like ls, cp, mkdir, mv (via the Files API)
  • Supports search
  • Supports file revisions and file restore
  • Chunked uploads for large files, paginated listing for large directories
  • Supports a growing set of Team operations

Installation

Download pre-compiled binaries for Mac, Windows and Linux from the releases page.

...

$ dbxcli --help
Use dbxcli to quickly interact with your Dropbox, upload/download files,
manage your team and more. It is easy, scriptable and works on all platforms!
Usage: dbxcli [command]
Available Commands: cp Copy files du Display usage information get Download a file ls List files mkdir Create a new directory mv Move files put Upload files restore Restore files revs List file revisions rm Remove files search Search team Team management commands version Print version information
Flags: --as-member string Member ID to perform action as -v, --verbose Enable verbose logging
Use "dbxcli [command] --help" for more information about a command.
$ dbxcli team --help
Team management commands
Usage: dbxcli team [command]
Available Commands: add-member Add a new member to a team info Get team information list-groups List groups list-members List team members remove-member Remove member from a team
Global Flags: --as-member string Member ID to perform action as -v, --verbose Enable verbose logging
Use "dbxcli team [command] --help" for more information about a command.

Source: dropbox/dbxcli: A command line client for Dropbox built using the Go SDK

2

Dropbox supports under Linux an official command-line interface via thedropbox command. One needs to navigate to the root of the actual Dropbox folder before running the commands below, which is usually ~/Dropbox.

dropbox update
dropbox filestatus [-l] [-a] [FILE]...
dropbox ls [FILE]...
dropbox puburl FILE
dropbox sharelink FILE
dropbox proxy MODE [TYPE] [HOST] [PORT] [USERNAME] [PASSWORD]
dropbox throttle DOWNLOAD UPLOAD
dropbox status
dropbox running
dropbox stop
dropbox lansync [y/n]
dropbox exclude [list]
dropbox start [-i]
dropbox autostart [y/n]
dropbox version
dropbox help [COMMAND]

For more information see the Dropbox help article
What Linux commands are available on Dropbox?

7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like