lium exec
Execute a command on one or more pods.
lium exec POD COMMAND [OPTIONS]
Arguments​
POD— Pod name, index, comma-separated list, orall.COMMAND— The command to execute on the pod.
Options​
| Flag | Effect |
|---|---|
--timeout SECONDS | Abort if the command runs longer than this |
--output FILE | Save combined stdout/stderr to a local file |
Examples​
lium exec my-pod "python train.py"
lium exec 1 "nvidia-smi" --output gpu_info.txt
lium exec 1,2,3 "apt update" # Multiple pods
lium exec all "pip install numpy" # Every running pod