---
title: "aeontel graph"
description: "Manage knowledge graphs"
section: "CLI"
group: "Commands"
order: 816
---

## Graph commands

### `aeontel graph list`

List graphs in a workspace

```ts
aeontel graph list --workspace <id>
```

```bash
aeontel graph list --workspace wsp_...
```

### `aeontel graph create`

Create a graph

```ts
aeontel graph create <name> --workspace <id> [--slug <slug>] [--description <desc>]
```

```bash
aeontel graph create "My name" --workspace wsp_...
```

### `aeontel graph get`

Get graph details

```ts
aeontel graph get <id>
```

```bash
aeontel graph get id_...
```

### `aeontel graph update`

Update graph

```ts
aeontel graph update <id> [--name <name>] [--description <desc>]
```

```bash
aeontel graph update id_...
```

### `aeontel graph delete`

Soft-delete graph definition and all instances (restorable until retention expires)

```ts
aeontel graph delete <id>
```

```bash
aeontel graph delete id_...
```

### `aeontel graph get-edge`

Get a single graph edge

```ts
aeontel graph get-edge <edgeId>
```

```bash
aeontel graph get-edge edg_...
```

### `aeontel graph get-node`

Get a single graph node

```ts
aeontel graph get-node <nodeId>
```

```bash
aeontel graph get-node nod_...
```

### `aeontel graph instance-delete`

Soft-delete a graph instance (restorable until retention expires)

```ts
aeontel graph instance-delete <id>
```

```bash
aeontel graph instance-delete id_...
```

### `aeontel graph instance-restore`

Restore a soft-deleted graph instance

```ts
aeontel graph instance-restore <id>
```

```bash
aeontel graph instance-restore id_...
```

### `aeontel graph instances`

List graph instances under a definition

```ts
aeontel graph instances <id>
```

```bash
aeontel graph instances id_...
```

### `aeontel graph restore`

Restore a soft-deleted graph definition

```ts
aeontel graph restore <id>
```

```bash
aeontel graph restore id_...
```
