> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# fly sprites sessions attach

Connect your terminal to a running session, given the ID that 'fly sprites
sessions list' shows. In a TTY session, Ctrl+\ detaches without ending it.

## Usage

```
fly sprites sessions attach [flags] <session-id>
```

## Options

```
  -h, --help              help for attach
      --no-port-forward   Do not forward ports opened by the session to localhost
  -o, --org string        The target Fly.io organization
  -s, --sprite string     The target sprite. Defaults to the one set with 'fly sprites use'
```

## Global Options

```
  -t, --access-token string   Fly.io API token to use, overriding FLY_ACCESS_TOKEN, FLY_API_TOKEN and the saved login
      --debug                 Print additional logs and traces
      --verbose               Verbose output
```

## See Also

* [fly sprites sessions](https://docs.fly.io/flyctl/cmd/fly_sprites_sessions)	 - Manage a sprite's running sessions
