Skip to content

Files

Terminal window
echo "hello from local" > local-file.txt
runta cp local-file.txt demo:/tmp/local-file.txt
runta exec demo -- sh -lc 'echo "hello from runtime" > /tmp/result.txt'
runta cp demo:/tmp/result.txt ./result.txt

Use absolute remote paths when possible. Relative local paths are resolved by your shell before the CLI sends the file.

The CLI uploads and downloads complete directory trees. Python and TypeScript can recursively upload a local directory, but their download() methods currently download files only.

Terminal window
runta cp ./local-dir demo:/workspace/local-dir
runta cp demo:/workspace/results ./results

If an environment does not have standard shell utilities such as sh, mkdir, tar, or chmod available, prefer single-file writes through the SDK methods.

Use the Runta CLI for terminal workflows, shell scripts, and direct runtime operations.

TaskCLI command
Upload a file runta cp ./local.txt demo:/tmp/local.txt
Download a file runta cp demo:/tmp/result.txt ./result.txt
Upload a directory runta cp ./local-dir demo:/workspace/local-dir
Download a directory runta cp demo:/workspace/results ./results
Read a file runta exec demo -- cat /tmp/message.txt
Write a file runta exec demo -- sh -lc 'echo hello > /tmp/message.txt'