sbx cp
| 内容説明 | Copy files or directories between a sandbox and the host |
|---|---|
| 利用方法 | sbx 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
| オプション | デフォルト | 内容説明 |
|---|---|---|
-L, --follow-link | Follow symbolic links in the source path when copying from host to sandbox |
Global options
| オプション | デフォルト | 内容説明 |
|---|---|---|
-D, --debug | Enable 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