> ## Documentation Index
> Fetch the complete documentation index at: https://docs.diversion.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# mkdir

> Create a directory in the workspace

The `mkdir` command creates a new directory in your workspace.

```bash theme={null}
dv mkdir --path <path> [--workspace_id <workspace_id>]
```

**Required Parameters:**

* `--path` - The path to the directory to create

**Optional Parameters:**

* `--workspace_id` - The ID of the workspace to create the directory in (defaults to current workspace)

This command is useful for creating directory structures programmatically or from scripts.

An example of creating a directory:

```bash theme={null}
dv mkdir --path /game/levels/world1
```

An example of creating a directory in a specific workspace:

```bash theme={null}
dv mkdir --path /assets/textures --workspace_id abc123def456
```

<Note>
  After using `mkdir`, you'll still need to commit the changes to save the directory structure to your branch.
</Note>
