Upload and download files

Overview

Use the following commands to upload and download files via the Seven Bridges Command Line Interface.

download

Initiate file download. If you are downloading a single file, the destination can be either a folder or a filename which will be assigned to the downloaded file. If you are downloading several files at once, you can only specify the destination folder.

Usage:
  sb download --file <file_value> ... [--destination <destination_value>] [--overwrite] [flags]

Flags:
      --file stringSlice     The ID of the file(s) you want to download.
      --destination string   Path to the directory in which you want to save the file(s) or the new filename you wish to assign a single file download.
      --overwrite            Overwrite the file if it already exists.
  -h, --help                 help for download

upload

Upload a file to a project, possibly with a new name.

Usage:
  sb upload --file <file_value> --project <project_value> [--name <name_value>] [--overwrite] [flags]

Flags:
      --file string      The name of the file you want to upload.
      --project string   The ID of the project you want to upload to.
      --name string      Optional new name for the file.
      --overwrite        Overwrite the file if it already exists.
  -h, --help            help for upload