# `dapi folder mv [--to ]` 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`. ## Input - ``: folder ids (required) - `--to `: destination parent folder (optional; omitted = the library root) ## Output JSON Lines on stdout, one per moved folder: ```ts { id: string; parentId: string | null } ``` ## Errors An unknown id, a cycle, or a `--to` that doesn't resolve to a folder fails the whole command before anything is moved.