space:uploadΒΆ

Upload files to a space from your local file system. By default, all files in the source directory will be uploaded.

Tip

You can copy the first part of this command from the CONVERGE Horizon web interface. In your space, navigate to the directory to which the files will be uploaded and click cli-copy-button. Select horizon space:upload to copy the command for uploading to that directory. The copied string will be missing the <source> argument, which you must provide. You can also edit the string to add any options you want to apply.

Usage

horizon space:upload [options] <space> <destination> <source>

Examples

# Upload files from current working directory to /my/case/dir/ in My Space
horizon space:upload "My Space" "/my/case/dir/" .

# Exclude files in outputs_* directories
horizon space:upload --exclude=*outputs_* "My Space" "/my/case/dir/" .

# Upload only .in and .dat files
horizon space:upload --include=*.in --include=*.dat "My Space" "/my/case/dir/" .

# Upload files with paths containing "map", excluding .log files
horizon space:upload --include=*map* --exclude=*.log "My Space" "/my/case/dir/" .

Arguments

<space>

The name or ID of the space to which files will be uploaded. You can get the space ID by running space:list or by navigating to the space in the web interface and clicking cli-copy-button in the File Manager.

<destination>

The path to the directory in the space to which files will be uploaded. If the directory does not exist, it will be created. If the directory already exists, you can copy the path by navigating to the directory in the web interface and clicking cli-copy-button in the File Manager.

<source>

The path to the directory on your local file system from which files will be uploaded (relative to current directory).

Options

This command supports the general CLI options in addition to those listed below.

--exclude=PATTERN, -e PATTERN

Exclude 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 PATTERN

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