Skip to content

Runtime Commands

Create a new runtime.

Terminal window
runta run [OPTIONS] --cpus <vcpus> --memory <memory_mib> [--memory-max <memory_max_mib>]
Option Description
--name <name> Runtime name. If omitted, runta generates a random name.
--cpus <vcpus> Number of vCPUs. Required.
--memory <memory_mib> Memory in MiB. Required.
--memory-max <memory_max_mib> Maximum auto-scaled memory in MiB. Must be at least --memory; defaults to the initial memory.
-p, --publish <ingress_spec> Repeatable ingress rule in <port>/http or <port>/https form.
--idle-mode <idle_mode> Idle policy: disabled, suspend-only, or suspend-and-wakeup.
--idle-timeout <idle_timeout_secs> Suspend the runtime after this many seconds without observed activity. Omit to disable.
Terminal window
runta run --name demo --cpus 2 --memory 2048
runta run --name demo --cpus 2 --memory 1024 --memory-max 8192
runta run --name demo --cpus 2 --memory 2048 --publish 8080/https
runta run --name demo --cpus 1 --memory 512 --publish 8080/https --idle-mode suspend-and-wakeup --idle-timeout 300

List runtimes.

Terminal window
runta ps [OPTIONS]
Option Description
-a, --all Show all runtimes, including unreachable ones.

Show detailed information for a runtime.

Terminal window
runta inspect <runtime_name>
Terminal window
runta shutdown <runtime_name>
runta boot <runtime_name>
runta pause <runtime_name>
runta resume <runtime_name>
runta rm <runtime_name>...

Resize runtime memory.

Terminal window
runta resize --memory <memory_mib> <runtime_name>
Option Description
--memory <memory_mib> New memory size in MiB. Required.