space:download (v2)#
Note
This documentation is for CLI v2. If you are using CLI v3, refer to space:download.
Download files from a space to your local file system. By default, all files in the source directory will be downloaded.
Tip
You can copy the first part of this command from the CONVERGE Horizon web interface. In your space, select the folder containing the files to download, click Commands, and select Copy download command. The copied string will be missing the <destination> argument, which you must provide. You can also edit the string to add any options you want to apply.
Usage
horizon space:download [options] <space> <source> <destination>
Examples
# Download output directory from My Space to current working directory
horizon space:download "My Space" "/my/case/dir_bcb634650910/" .
# Skip files that already exist in current working directory
horizon space:download --resume "My Space" "/my/case/dir_bcb634650910/" .
# Exclude files in _preview directory
horizon space:download --exclude=*_preview* "My Space" "/my/case/dir_bcb634650910/" .
# Download only .log and .out files
horizon space:download --include=*.log --include=*.out "My Space" "/my/case/dir_bcb634650910/" .
# Download only .h5 files, excluding files with "post0003" in the path
horizon space:download --include=*.h5 --exclude=*post0003* "My Space" "/my/case/dir_bcb634650910/" .
Arguments
<space>The name or ID of the space from which files will be downloaded. You can get the space ID by running space:list or by opening the space in the web interface, clicking Commands, and selecting Copy space ID.
<source>The path to the directory in the space from which files will be downloaded. You can copy the path by selecting the folder in the web interface, clicking Commands, and selecting Copy folder path. To download all files in the space, specify
"/".<destination>The path to the directory on your local file system to which files will be downloaded (relative to current directory).
Options
This command supports the general CLI options in addition to those listed below.
--exclude=PATTERN, -e PATTERNExclude files with paths that match PATTERN (use * to match any character in the file path). The PATTERN is compared to the entire file path, not just the file name. If you use this option in conjunction with
--include, the included files are processed before the excluded files.--include=PATTERN, -i PATTERNDownload only the files with paths that match PATTERN (use * to match any character in the file path). The PATTERN is compared to the entire file path, not just the file name. If you use this option in conjunction with
--exclude, the included files are processed before the excluded files.--resume, -RDo not download files from
<source>that already exist in<destination>. This option is useful for resuming downloads that were not completed.