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.

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 filerunta cp ./local.txt demo:/tmp/local.txt
Download a filerunta cp demo:/tmp/result.txt ./result.txt
Upload a directoryrunta cp ./local-dir demo:/workspace/local-dir
Download a directoryrunta cp demo:/workspace/results ./results
Read a filerunta exec demo -- cat /tmp/message.txt
Write a filerunta exec demo -- sh -lc 'echo hello > /tmp/message.txt'