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 uploadcommand followed by a file path to upload one local file.
NOTE: You can use the
—briefflag 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 uploadcommand 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/‑‑recursiveparameter with the
dx uploadcommand 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=VALUEparameter 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 uploadcommand using the
--tag TAGparameter. The parameter may be repeated as necessary, e.g.
--tag tag1 --tag tag2, to link multiple tags to a file.
--path/‑‑destinationparameter to specify the DNAnexus destination path. If the path is not specified,
dx uploadwill default to the current project and folder. You can determine your current project and folder using the command
--buffer-sizeparameter with the
dx uploadcommand to set the write buffer size in bytes. When uploading large files from standard input, you will need to manually set a
dxcommand does not know the file size beforehand.
--no-progressflag with the
dx uploadcommand to hide the progress bar.