dx upload
. You can also upload data using the DNAnexus Upload Agent, a fast and convenient command-line client. For uploading multiple or large files (>50 MB), we recommend that you use Upload Agent, which allows you to upload up to 1000 files concurrently and resume uploads in case of network interruption.dx upload
command followed by a file path to upload one local file.NOTE: You can use the—brief
flag with the dx upload command to print only a DNAnexus ID rather than the output shown above. This flag is useful if you want to save the file ID of the uploaded file.
dx upload
command followed by multiple file paths to upload multiple local files.TIP: You can use the wildcard*
to upload multiple files.
/Users/alice/
directory. This directory should contain only files and not sub-directories.‑r/‑‑recursive
parameter with the dx upload
command to recursively upload one or more directories or folders and maintain their respective structures.NOTE: If the local uploaded directory ends with the/
character, only the contents of the directory will be uploaded, not the directory itself.
--property KEY=VALUE
parameter to add metadata to the file being uploaded. The parameter may be repeated as necessary, e.g. --property key1=val1 --property key2=val2
, to link multiple metadata fields as key-value pairs.dx upload
command using the --tag TAG
parameter. The parameter may be repeated as necessary, e.g. --tag tag1 --tag tag2
, to link multiple tags to a file.--path/‑‑destination
parameter to specify the DNAnexus destination path. If the path is not specified, dx upload
will default to the current project and folder. You can determine your current project and folder using the command dx pwd
.--buffer-size
parameter with the dx upload
command to set the write buffer size in bytes. When uploading large files from standard input, you will need to manually set a --buffer-size
because the dx
command does not know the file size beforehand.--no-progress
flag with the dx upload
command to hide the progress bar.