2026-07-08 22:33:29 +02:00
# `dapi folder mv <ids...> [--to <folderId>]`
2026-07-15 12:39:25 +02:00
Moves one or more folders under a new parent. A folder cannot be moved into itself or any of its descendants; such a move fails the command. Alias: `move` .
2026-07-08 22:33:29 +02:00
## Input
- `<ids...>` : folder ids (required)
- `--to <folderId>` : destination parent folder (optional; omitted = the library root)
## Output
2026-07-15 12:39:25 +02:00
JSON Lines on stdout, one per moved folder:
2026-07-08 22:33:29 +02:00
```ts
2026-07-15 12:39:25 +02:00
{ id: string; parentId: string | null }
2026-07-08 22:33:29 +02:00
```
## Errors
2026-07-15 12:39:25 +02:00
An unknown id, a cycle, or a `--to` that doesn't resolve to a folder fails the whole command before anything is moved.