How to Upload Files to Dropbox with CLI

What you’ll need:

  • A Dropbox account
  • Your usual login details for Dropbox; a user ID (typically an email address) and password
    for the Dropbox account

Connecting to Dropbox

Use the dropbox protocol and connect to the api.dropboxapi.com host:

    From the prompt enter the connect command:

      fzcli> connect dropbox://user-id@api.dropboxapi.com<path>

      fzcli> connect dropbox://demouser@gmail.com@api.dropboxapi.com

    Optionally you can use the parameters of the connect command:

      fzcli> connect --protocol dropbox --user <user-id> --path <path>
      api.dropboxapi.com

    Note that the path is optional but if present it has to start with a slash.

    An authorization URL is shown. Open the authorization URL in a browser and
    follow the steps to authorize FileZilla Pro Command Line.

You can now transfer files between your local machine and your Dropbox account.

Tags: , , ,