Skip to content

rune exec

Terminal window
rune exec <service-or-instance> [--] <command> [args...]
Terminal window
# Interactive shell
rune exec api bash
# One-off
rune exec api ls -la /app
# Specific instance
rune exec api-instance-7c2e ps aux
# Workdir + env + command
rune exec api --workdir=/app --env=DEBUG=true python debug.py
# Non-interactive
rune exec api --no-tty python script.py
# Bound timeout
rune exec api --timeout=30s python long.py
FlagDefaultNotes
-n, --namespacecontextTarget namespace.
--workdir <dir>runnerWorking directory inside the instance.
--env k=vExtra env var (repeatable).
--no-ttyfalseDisable TTY allocation.
--timeout <dur>Bound the session.
  • A service-name argument picks any healthy instance.
  • An instance ID targets that exact instance.
  • Stdin/stdout are forwarded full-duplex when a TTY is allocated.
  • Exit code is forwarded — rune exec exits with the same status as the inner command.

Gated by the exec verb on service (or instance). Lock this down in production policies — exec is effectively root inside the container.