---
title: "aeontel directory"
description: "Manage directories"
section: "CLI"
group: "Commands"
order: 814
---

## Directory commands

### `aeontel directory list`

List directories

```ts
aeontel directory list [--workspace <id>] [--parent <id>]
```

```bash
aeontel directory list
```

### `aeontel directory create`

Create a directory

```ts
aeontel directory create --workspace <id> --name <name> [--parent <id>] [--slug <slug>]
```

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

### `aeontel directory get`

Get directory details

```ts
aeontel directory get <id>
```

```bash
aeontel directory get id_...
```

### `aeontel directory update`

Rename or move a directory

```ts
aeontel directory update <id> [--name <name>] [--parent <id>]
```

```bash
aeontel directory update id_...
```

### `aeontel directory delete`

Soft-delete a directory (restorable until retention expires)

```ts
aeontel directory delete <id>
```

```bash
aeontel directory delete id_...
```

### `aeontel directory restore`

Restore a soft-deleted directory

```ts
aeontel directory restore <id>
```

```bash
aeontel directory restore id_...
```
