Skip to content

nodus exec

View Markdown

Run a command in a running Job, Sandbox or Workspace (recorded as a Process)

nodus exec [-it] KIND/NAME -- COMMAND [ARGS...] [flags]
nodus exec -it job/finetune -- bash
nodus exec sb/dev -- nvidia-smi
-h, --help help for exec
--index int Job index (Indexed Jobs) (default -1)
--rank string Gang member rank (default 0)
-i, --stdin Pass stdin to the command
-t, --tty Allocate a terminal
--context string Context from the config file to use
--org string Organization (selects the context for that org)
-p, --project string Project to work in
-v, --verbose Log each API request (never credentials)
  • nodus - Run compute Jobs on Nodus

These invocations run in CI against the CLI’s fake API.

Terminal window
nodus exec sb/dev -- python -c 'raise SystemExit(3)'