# session

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

## Usage

```bash
bdy tests visual session [options] [command]
```

Manage visual test sessions

## Options

| **Option** | **Description** |
| :--- | :--- |
| `--context <name>` | Connection and scope context: default, git, link or a saved name. Overrides the globally active context for this invocation. |
| `--examples` | Show only examples; with this flag --format accepts text, json or jsonl |
| `--verbose` | Show REST API requests, responses, timing and retries on stderr |
| `-h, --help` | display help for command |

## Available Commands

| **Command** | **Description** |
| :--- | :--- |
| [close](https://buddy.works/docs/cli/tests/visual/session/close.md) | Close a parallel visual test session early (skip auto-close timeout) |
| [create](https://buddy.works/docs/cli/tests/visual/session/create.md) | Run a test command and create a visual test session from emitted snapshots |

Documentation for bdy v1.25.34

## Examples

### Run your test command with the visual-test plugin server attached

```bash
bdy tests visual session create "npm test"
```

### Skip resource discovery (debugging or asset-free pages)

```bash
bdy tests visual session create "npm test" --skipDiscovery
```

### Send snapshots progressively (quicker review during long runs)

```bash
bdy tests visual session create "npm test" --oneByOne
```

### One runner in a parallel session (every runner must share the same $SNAPSHOTS_BUILD_ID)

```bash
bdy tests visual session create "npm test" --parallel
```

### Close the session after all parallel runners finished (build id read from $SNAPSHOTS_BUILD_ID)

```bash
bdy tests visual session close
```


---
Original source: https://buddy.works/docs/cli/tests/visual/session