Synopsis
Description
dms convert is a command group with two subcommands for bidirectional conversion between the flat CSV spreadsheet format and structured DMS JSON records.
csv2json— reads a CSV where each row is one record and writes a JSON array (or individual files if the output path is a directory).json2csv— reads a single DMS JSON record or a JSON array and writes a flat CSV file.
_-separated column names (e.g., creator_name, rights_access_level). Multi-value fields use the pipe character (|) as a delimiter.
Subcommands
csv2json
Convert a CSV file to DMS JSON records.Path to the input
.csv file. Must exist.Output path. When omitted, the default is
<stem>_converted.json in the same directory as the input file (e.g., batch_converted.json for batch.csv). If you supply a path without a .json extension, each record is written as a separate file inside that directory.json2csv
Convert DMS JSON record(s) to CSV format.Path to a DMS JSON file. Can be a single record object or a JSON array. Must exist.
Output CSV path. When omitted, the file is written alongside the input with the same stem and a
.csv extension.CSV column format
The canonical column order for a DMS CSV file:Multi-value columns (
creator_name, creator_role, subject) use | (pipe) as a delimiter. For example, two creators are stored as Alice|Bob in creator_name and author|photographer in creator_role.