- Dropbox! Start Here – jandp.biz/is/apps/dropbox/
- $HOME/Dropbox – jandp.biz/is/apps/dropbox/home-dropbox/
- stackoverflow.com/questions/14608425/dropbox-sync-using-mac-command-line
Contents
dbxcli
Info
- dropbox.github.io/dbxcli/
- github.com/dropbox/dbxcli/releases
- google.com/search?q=dbxcli+mac+os
- google.com/search?q=dropbox+cli+command+macos
Get / Installation Pre-built Command
README.md
- ( Make sure you download and place the binary in a folder that’s on your `$PATH`. If you are unsure what this means, go to *step 2*. Otherwise, skip to *step 3* )
- ( Create a `bin` directory under your home directory. )
$ mkdir ~/bin
$ cd ~/bin - ( Add the following line at the end of your `~/.bash_profile` file. [Link with instructions](https://natelandau.com/my-mac-osx-bash_profile/) on how to find this file
export PATH=$PATH:$HOME/bin - Download the `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](https://github.com/dropbox/dbxcli/releases) page.
$ wget https://github.com/dropbox/dbxcli/releases/download/v2.1.1/dbxcli-darwin-amd64
$ mv dbxcli-darwin-amd64 dbxcli
- Finally, make the binary an executable file and you are good to go!
$ chmod +x dbxcli
The steps above are the steps in README.md file (dbxcli-3.0.0.zip, sources zip).
The below are additional steps, partly required by later generations of macOS (e.g. macOS 12 ) due to the for each generation of macOS increasingly strengthened protection against malware (Gatekeeper, even section below for more). - First time trying to run
dbxcli
:
Must allow to run: System Preferences > Security & Privacy : General tab, select Allow Anyway. - Second time trying to run
dbxcli
:
Confirm to Open in dialog popping up: ‘macOS cannot verify the developer of “dbxcli”. Are you sure you want to open it?’ - Now command WILL finally run, at least with for basic options like showing help.
For anything related to your Dropbox account, one more step is required- getting and setting an authorization code.
$ dbxcli ls
Will print something like this- Go to https://www.dropbox.com/1/oauth2/authorize?client_id=….&…..
- Click “Allow” (you might have to log in first).
- Copy the authorization code.
Enter the authorization code here: <paste code from web page here and press Enter> - That’s It. Finally. Now dbxcli can be used w/o restrictions.
macOS Gatekeeper
- google.com/search?q=dbxcli+on+macos+12+macOS+cannot+verify+that+this+app+is+free+from+malware
- gadgetstouse.com/blog/2021/04/08/fix-macos-cannot-verify-app-is-free-from-malware/
- en.wikipedia.org/wiki/Gatekeeper_(macOS)
Development
- (Dropbox) dropbox.com/developers/
- (Dropbox) API documentation – dropbox.com/developers/documentation/http/documentation
- (Unofficial) Dropbox SDK for Go [UNOFFICIAL] – pkg.go.dev/github.com/dropbox/dropbox-sdk-go-unofficial
Troubles / Not-Yet Implemented / Bugs / …
Smart Sync not yet handled by any known CLI
Ok, so far only know of dbxcli but also article says no: dropboxforum.com/t5/Dropbox-files-folders/Smart-Sync-and-aTerminal-Command-Line/td-p/318207
For more research – google.com/search?q=dropbox+smart+sync+via+terminal