cp - Download a file from the image¶
Download a file from the session image to a local path.
Examples¶
# Copy a config file locally
contree cp /etc/nginx/nginx.conf ./nginx.conf
# Download a build artifact
contree cp /app/dist/output.tar.gz ./output.tar.gz
Help output¶
Behavior¶
The file is streamed from the image directly – no sandbox is started.
For large files, progress is logged every 5 seconds with download speed and ETA. The final log line shows total size and average speed.
See also¶
ls - List files in the image – list files to find the path
cat - Show file content from the image – view file contents without downloading
Your First Sandbox – downloading files