dbxcli
: A command line tool for Dropbox users and team admins [UNOFFICIAL]:warning: WARNING: This project is NOT official. What does this mean?
Download pre-compiled binaries for Mac, Windows and Linux from the releases page.
These instructions aim to help both experts and novice dbxcli
users. Please submit an issue if they don't work for you.
$PATH
. If you are unsure what this means, go to step 2. Otherwise, skip to step 3bin
directory under your home directory.
$ mkdir ~/bin
$ cd ~/bin
~/.bash_profile
file. Link with instructions on how to find this file
export PATH=$PATH:$HOME/bin
dbxcli
binary for OSX and rename it. IMPORTANT: Check that the tag v2.1.1
on the URL below is the latest release tag on the Releases page.
$ wget https://github.com/dropbox/dbxcli/releases/download/v2.1.1/dbxcli-darwin-amd64
$ mv dbxcli-darwin-amd64 dbxcli
$ chmod +x dbxcli
For newcomers the go build process can be a bit arcane, these steps can be followed to build dbxcli
yourself.
git
, go
, and gox
are installed. mkdir $HOME/go
or mkdir $HOME/.go
. Navigate to it.go get github.com/dropbox/dbxcli
. That's right, you don't manually clone it, this does it for you.cd ~/go/src/github.com/dropbox/dbxcli
(adapt accordingly based on step 2).Now we need to pause for a second to get development keys.
https://www.dropbox.com/developers/apps
(sign in if necessary) and choose "Create app". Use the Dropbox API and give it Full Dropbox access. Name and create the app.personalAppKey
in root.go
with the key from the webpage.personalAppSecret
with the secret from the webpage.Finally we're ready to build. Run go build
, and you'll see a dbxcli
binary has been created in the current directory. Congrats, we're done!
dbxcli
is largely self documenting. Run dbxcli -h
for a list of supported commands:
$ 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.
The --verbose
option will turn on verbose logging and is useful for debugging.