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
4kr 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
4kr cp ./local.txt my-box:/tmp/remote.txt

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

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

get

Download a file from a box
4kr 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
4kr get my-box:/tmp/remote.txt ./local.txt

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

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

put

Upload a file to a box
4kr 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
4kr put ./local.txt my-box:/tmp/remote.txt

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

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