21 lines
740 B
Markdown
Raw Permalink Normal View History

# `dapi asset ls [ids...]`
The raw asset records, as persisted minus the file handles: every serializable property the asset carries (per-type media metadata, `folderId`, a stored `transcript`, …). The property-level counterpart to [`asset tree`](./tree.md)'s structure. With no ids, returns every asset in the library. Alias: `get`.
## Input
- `[ids...]`: zero or more asset ids (optional)
## Output
JSON Lines, one per asset:
```ts
AssetRecord = { id: string } & { [property: string]: unknown }
// e.g. name, type, mimeType, size, createdAt, folderId; duration/width/height/… by type
```
## Errors
An unknown id fails the whole command: nothing is printed to stdout and it exits non-zero with `No such asset: <id>` on stderr.