---
agentTools:
  projectIndex: https://docs.cancergenomicscloud.org/llms.txt
---

# 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.

[block:code]
{
  "codes": [
    {
      "code": "Usage:\n  sb download --file <file_value> ... [--destination <destination_value>] [--overwrite] [flags]\n\nFlags:\n      --file stringSlice     The ID of the file(s) you want to download.\n      --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.\n      --overwrite            Overwrite the file if it already exists.\n  -h, --help                 help for download",
      "language": "text",
      "name": "download"
    }
  ]
}
[/block]

\##upload

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

[block:code]
{
  "codes": [
    {
      "code": "Usage:\n  sb upload --file <file_value> --project <project_value> [--name <name_value>] [--overwrite] [flags]\n\nFlags:\n      --file string      The name of the file you want to upload.\n      --project string   The ID of the project you want to upload to.\n      --name string      Optional new name for the file.\n      --overwrite        Overwrite the file if it already exists.\n  -h, --help            help for upload\n",
      "language": "text"
    }
  ]
}
[/block]