---
title: "aeontel schema"
description: "Manage schemas"
section: "CLI"
group: "Commands"
order: 826
---

## Schema commands

### `aeontel schema list`

List schemas in a workspace

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

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

### `aeontel schema create`

Create a schema

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

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

### `aeontel schema get`

Get schema details with fields

```ts
aeontel schema get <id>
```

```bash
aeontel schema get id_...
```

### `aeontel schema update`

Update schema

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

```bash
aeontel schema update id_...
```

### `aeontel schema delete`

Soft-delete schema (restorable until retention expires)

```ts
aeontel schema delete <id>
```

```bash
aeontel schema delete id_...
```

### `aeontel schema restore`

Restore a soft-deleted schema

```ts
aeontel schema restore <id>
```

```bash
aeontel schema restore id_...
```
