How to Upload Files to Box with CLI

What you’ll need

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

Connecting to Box

Use the box protocol and connect to the api.box.com host:

    From the prompt enter the connect command:

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

      fzcli> connect box://demouser@gmail.com@gapi.box.com

    Optionally you can use the parameters of the connect command:

      fzcli> connect --protocol box --user <user-id> --path <path>
      api.box.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.

      An authorization code is generated in the browser. Copy the code in the prompt.

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

Tags: , ,