# terminals

Canonical URL: https://developers.iagenify.com/de/sdk/ref/compute/terminals/
Language: de

`api.compute.terminals.{ list, create, get, remove }`

Manage the account's persistent isolated terminal sessions.

Status: persistent until removed · one Object Storage workspace

| Method | Description |
| --- | --- |
| [list(storageId?)](/de/sdk/ref/compute/terminals/list) | List open terminals, optionally filtered to one Object Storage. |
| [create(options)](/de/sdk/ref/compute/terminals/create) | Open a terminal and optionally start its first command. |
| [get(id)](/de/sdk/ref/compute/terminals/get) | Read terminal state and output. |
| [remove(id)](/de/sdk/ref/compute/terminals/remove) | Close the terminal and its container. |

```javascript
const terminal = await api.compute.terminals.create({
  storageId: "YOUR_OBJECT_STORAGE_ID",
  name: "build",
  command: "npm run dev",
  port: 3000,
});
console.log(terminal.id, terminal.url);
```

The returned value is a [ComputeTerminal](/de/sdk/ref/compute-terminal). Use its methods to send input, poll output, open a preview, interrupt the current command or close the session.

```python
terminal = api.compute.terminals.create(
    storage_id="YOUR_OBJECT_STORAGE_ID",
    name="build",
    command="npm run dev",
    port=3000,
)
print(terminal.id, terminal.url)
```
