Share feedback
Answers are generated based on the documentation.

sbx cp

DescriptionCopy files or directories between a sandbox and the host
Usagesbx cp [flags] SRC DST

Description

Either SRC or DST must be a sandbox path, written as SANDBOX:PATH. The other must be a local path. Copying between two sandboxes is not supported.

When copying a directory, the directory itself is placed at the destination. If the destination path does not exist it is created; if it already exists as a directory, the source is placed inside it.

Options

OptionDefaultDescription
-L, --follow-linkFollow symbolic links in the source path when copying from host to sandbox

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

# Copy a file from host to sandbox
sbx cp ./config.json my-sandbox:/home/user/

# Copy a file from sandbox to host
sbx cp my-sandbox:/home/user/output.log ./

# Copy a directory
sbx cp ./src/ my-sandbox:/home/user/src