Commands for transferring files between your machine and a box. A box path is written box:/path, and may be qualified with a project as project:box:/path.

cp

Copy files between your machine and a box
zomg cp <SRC> <DEST> [options]
Argument / optionDescription
<SRC>Source path (local or box:/path)
<DEST>Destination path (local or box:/path)
-p, --project <PROJECT>Target project.
# Upload file to a box
zomg cp ./local.txt my-box:/tmp/remote.txt

# Download file from a box
zomg cp my-box:/tmp/remote.txt ./local.txt

# Copy across projects using qualified ref
zomg cp myproject:my-box:/tmp/file.txt ./file.txt

get

Download a file from a box
zomg get <SRC> <DEST> [options]
Argument / optionDescription
<SRC>Source box path (box:/path)
<DEST>Destination local path
-p, --project <PROJECT>Target project.
# Download file from a box
zomg get my-box:/tmp/remote.txt ./local.txt

# Download into a directory
zomg get my-box:/tmp/remote.txt ./downloads/

# Download across projects using qualified ref
zomg get myproject:my-box:/tmp/file.txt ./file.txt

put

Upload a file to a box
zomg put <SRC> <DEST> [options]
Argument / optionDescription
<SRC>Source local path
<DEST>Destination box path (box:/path)
-p, --project <PROJECT>Target project.
# Upload file to a box
zomg put ./local.txt my-box:/tmp/remote.txt

# Upload using destination directory semantics
zomg put ./local.txt my-box:/tmp/

# Upload across projects using qualified ref
zomg put ./local.txt myproject:my-box:/tmp/file.txt