dataset COLLECTION_NAME detach KEY
dataset COLLECTION_NAME detach KEY ATTACHMENT_NAME
detach writes out (to local disc) the items that have been attached to a JSON record in the collection with the matching KEY
Write out all the attached files for k1 in collection named “publications.ds”
dataset publications.ds detach k1
Write out only the stats.xlsx file attached to k1
dataset publications.ds detach k1 stats.xlsx
Related topics: attach, attachments, and prune