# ocloud workspace

Source: https://olef.dev/docs/reference/ocloud/workspace

Generated from **ocloud 3.17.3**. [All ocloud commands](https://olef.dev/docs/reference/ocloud) · [Olef Cloud overview](https://olef.dev/docs/cloud/overview) · [`olef` commands](https://olef.dev/docs/reference/commands)

Configure or attach the linked workspace’s cloud emulator

Global options (`--org`, `--project-root`, `--quiet`, `--redact`) apply across commands; see the [`ocloud` command catalog](https://olef.dev/docs/reference/ocloud#global-options).

## ocloud workspace attach

Attach the workspace's cloud emulator to local adb (`127.0.0.1:<port>`)

```bash
ocloud workspace attach --help
```

| Argument | Description |
| --- | --- |
| `--port` | The port on 127.0.0.1 here (default: a free one, 15555 first) |
| `--wait-ms` | How long to wait for the session and emulator (ms) |

## ocloud workspace detach

Detach the workspace's cloud emulator from local adb (the session keeps running)

```bash
ocloud workspace detach --help
```

## ocloud workspace device

Get or set this workspace's emulator mode: `none`, `local`, `cloud:<name>`, or `default`

```bash
ocloud workspace device --help
```

| Argument | Description |
| --- | --- |
| `<value>` | Positional argument. |
