# nodus exec

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

Source: https://nodus-platform-site.pages.dev/docs/reference/cli/nodus_exec/
Build revision: 211ad9f836655b1c3a2668c4693e442471f28614

## nodus exec

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

```plaintext
nodus exec [-it] KIND/NAME -- COMMAND [ARGS...] [flags]
```

### Examples

```plaintext
  nodus exec -it job/finetune -- bash
  nodus exec sb/dev -- nvidia-smi
```

### Options

```plaintext
  -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
```

### Options inherited from parent commands

```plaintext
      --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)
```

### SEE ALSO

* [nodus](https://nodus-platform-site.pages.dev/docs/reference/cli/nodus/) - Run compute Jobs on Nodus

### Tested examples

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

Terminal window

```sh
nodus exec sb/dev -- python -c 'raise SystemExit(3)'
```
