Update the output format for various asset and folder commands to ensure JSON Lines are emitted on stdout, providing a consistent structure across commands. Enhance error handling to ensure that unknown ids or invalid inputs fail the entire command, improving user feedback and command reliability. This change streamlines the user experience and aligns with the fail-fast convention for batch commands.
461 B
461 B
dapi asset mv <ids...> [--to <folderId>]
Moves one or more assets into a folder. Alias: move.
Input
<ids...>: asset ids (required)--to <folderId>: destination folder (optional; omitted = the library root)
Output
JSON Lines on stdout, one per moved asset:
{ id: string; folderId: string | null }
Errors
An unknown asset id, or a --to that doesn't resolve to a folder, fails the whole command before anything is moved.