# nodus attach

> Attach to a running Process of a Job, Sandbox or Workspace

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

## nodus attach

Attach to a running Process of a Job, Sandbox or Workspace

```plaintext
nodus attach KIND/NAME --process N [-it] [flags]
```

### Examples

```plaintext
  nodus attach sb/dev --process 12 -it
  nodus attach job/train --process 3 --rank 1
```

### Options

```plaintext
  -h, --help                          help for attach
      --index int                     Job index (Indexed Jobs) (default -1)
      --process nodus get processes   Process sequence number (as nodus get processes shows) or full name
      --rank string                   Gang member rank (default 0)
  -i, --stdin                         Pass stdin to the process
  -t, --tty                           The process has 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 attach sb/dev --process 1
```
